We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5887219 commit 75280f4Copy full SHA for 75280f4
package.json
@@ -4,8 +4,10 @@
4
"description": "Prefetch the route components of router-link in viewport.",
5
"main": "dist/index.js",
6
"module": "dist/index.esm.js",
7
+ "types": "types/index.d.ts",
8
"files": [
- "dist"
9
+ "dist",
10
+ "types"
11
],
12
"scripts": {
13
"test": "npm run lint",
types/index.d.ts
@@ -0,0 +1,12 @@
1
+declare module 'vue-router-prefetch' {
2
+ import { PluginFunction } from 'vue'
3
+
+ export interface RouterPrefetchOptions {
+ componentName?: string;
+ prefetch?: boolean;
+ }
+ const install: PluginFunction<RouterPrefetchOptions>
+ export default install
+}
0 commit comments