Skip to content

Commit 146507f

Browse files
committed
types
1 parent d9953f9 commit 146507f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/create-router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import VueRouter from 'vue-router'
22
import Vue from 'vue'
33

44
type CreateRouterParams = Omit<ConstructorParameters<typeof VueRouter>[0], 'mode'> & {
5-
history: ConstructorParameters<typeof VueRouter>[0]['mode']
5+
history: 'abstract' | 'history' | 'hash'
66
}
77

88
export function createRouter(options: CreateRouterParams) {

vite.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ export default defineConfig({
2020
},
2121
},
2222
},
23-
plugins: [],
23+
plugins: [
24+
dts({ logLevel: 'silent' })
25+
],
2426
test: {
2527
coverage: {
2628
exclude: ['packages'],

0 commit comments

Comments
 (0)