Skip to content

Commit f962251

Browse files
authored
add types
1 parent 6d1bf2e commit f962251

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

index.d.ts

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
declare module 'vue-page-stack' {
2+
import type { Router } from 'vue-router'
3+
export const VuePageStackPlugin: {
4+
install: (app: any, options: { router: Router }) => void
5+
}
6+
export const VuePageStack: import('vue').DefineComponent<
7+
{
8+
onForward: () => void,
9+
onBack: () => void,
10+
}
11+
>
12+
}
13+

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"files": [
77
"dist"
88
],
9+
"types": "./index.d.ts",
10+
"web-types": "./web-types.json",
911
"main": "./dist/vue-page-stack.umd.js",
1012
"module": "./dist/vue-page-stack.es.js",
1113
"private": false,

web-types.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "https://json.schemastore.org/web-types",
3+
"framework": "vue",
4+
"name": "vue-page-stack",
5+
"version": "3.1.1",
6+
"contributions": {
7+
"html": {
8+
"elements": [
9+
{
10+
"name": "vue-page-stack",
11+
"events": [
12+
{
13+
"name": "back",
14+
"arguments": []
15+
},
16+
{
17+
"name": "forward",
18+
"arguments": []
19+
}
20+
]
21+
}
22+
]
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)