Skip to content

Commit 06d2418

Browse files
committed
moved adding scrollMargin to PageMeta interface to the index file instead of a separate type file
1 parent 46bccb6 commit 06d2418

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

app/types/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
1+
import '#app'
2+
import '#vue-router'
13
export * from './icon'
24
export * from './navigation'
5+
6+
declare module '#app' {
7+
interface PageMeta {
8+
/**
9+
* top margin in pixels for scrolling to an element
10+
* @default 70
11+
*/
12+
scrollMargin?: number
13+
}
14+
}

app/types/routeMeta.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)