You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/guide/reusability/plugins.md
+2
Original file line number
Diff line number
Diff line change
@@ -139,3 +139,5 @@ export default {
139
139
### Bundle for NPM
140
140
141
141
If you further want to build and publish your plugin for others to use, see [Vite's section on Library Mode](https://vitejs.dev/guide/build.html#library-mode).
142
+
143
+
See also: [Typing Plugins](/guide/typescript/composition-api#typing-plugins) <supclass="vt-badge ts" />
Copy file name to clipboardexpand all lines: src/guide/typescript/composition-api.md
+50
Original file line number
Diff line number
Diff line change
@@ -476,3 +476,53 @@ const openModal = () => {
476
476
```
477
477
478
478
Note that with `@vue/language-tools` 2.1+, static template refs' types can be automatically inferred and the above is only needed in edge cases.
479
+
480
+
## Typing Plugins {#typing-plugins}
481
+
482
+
Vue provides built-in type support for plugins. There are two types of plugins: object plugins and function plugins. The type of the plugin will be automatically inferred by `app.use()`:
0 commit comments