Skip to content

Commit d6c125a

Browse files
committed
feat(types): interface PupaOptions
1 parent 5f856a0 commit d6c125a

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

src/types.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
1+
type EnvKey = string
2+
13
export interface Options {
24
/**
3-
* Use framework preset by default, set this value to override it.
5+
* Use framework preset by default, set this value to override
46
* @default ''
57
*/
68
publicBasePath?: string
79
/**
810
* @default 'UPDATE_POPUP_VERSION'
911
*/
10-
envKey?: string
12+
envKey?: EnvKey
1113
/**
1214
* @default 'update_popup_version.txt'
1315
*/
1416
versionFileName?: string
17+
/**
18+
* @default 'auto'
19+
*/
1520
versionType?: 'auto' | 'env'
1621
}
22+
23+
export interface PupaOptions {
24+
envKey: EnvKey
25+
currentVersion: string
26+
versionFilePath: string
27+
}

0 commit comments

Comments
 (0)