-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypes.ts
36 lines (32 loc) · 884 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
interface ExternalPluginOptionsBase {
locales: string[]
checkSyntax?: boolean
virtualModuleName?: string
}
export interface ExternalPluginOptionsFolder extends ExternalPluginOptionsBase {
baseDir: string
ftlDir: string
}
export interface ExternalPluginOptionsFunction extends ExternalPluginOptionsBase {
getFtlPath: (locale: string, vuePath: string) => string
}
export type ExternalPluginOptions = (ExternalPluginOptionsFolder | ExternalPluginOptionsFunction) & {
/**
* Whether to parse the ftl syntax before injecting it into component
*/
parseFtl?: boolean
}
export interface SFCPluginOptions {
/**
* Whether to parse the ftl syntax before injecting it into component
*/
parseFtl?: boolean
/**
* Vue custom block name
*/
blockType?: string
/**
* Whether to check for syntax errors in the ftl source
*/
checkSyntax?: boolean
}