We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0c2bc3 commit 5abab33Copy full SHA for 5abab33
packages/core/client.d.ts
@@ -1,13 +1,9 @@
1
+/// <reference path="./global.d.ts" />
2
+
3
declare module 'virtual:uni-pages' {
4
import type { SubPackage } from './src/config/types/index'
5
import type { PageMetaDatum } from './src/types'
6
7
export const pages: PageMetaDatum[]
8
export const subPackages: SubPackage[]
9
}
-
-declare global {
10
- const definePage: import('.').DefinePage
11
-}
12
13
-export {}
packages/core/global.d.ts
@@ -0,0 +1,5 @@
+declare global {
+ const definePage: import('.').DefinePage
+}
+export {}
packages/core/package.json
@@ -45,6 +45,7 @@
45
"files": [
46
"client.d.ts",
47
"dist",
48
+ "global.d.ts",
49
"index.d.ts"
50
],
51
"scripts": {
0 commit comments