We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8df5b00 commit c1b5c14Copy full SHA for c1b5c14
guide/api-plugin.md
@@ -564,9 +564,9 @@ export default defineConfig({
564
})
565
```
566
567
-### TypeScript for Custom Events
+### 自定义事件的 TypeScript 类型定义指南 {#typeScript-for-custom-events}
568
569
-It is possible to type custom events by extending the `CustomEventMap` interface:
+可以通过扩展 `CustomEventMap` 这个 interface 来为自定义事件标注类型:
570
571
```ts
572
// events.d.ts
0 commit comments