-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathsveltekit-plugin.d.ts
More file actions
25 lines (18 loc) · 665 Bytes
/
Copy pathsveltekit-plugin.d.ts
File metadata and controls
25 lines (18 loc) · 665 Bytes
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
type Transformer = (
content: string,
options: { filename: string, basename: string, extname: string }
) => string | PromiseLike<string>
interface Options {
prefix?: string
exclude?: RegExp | ((filename: string) => boolean)
transformers?: Record<string, Transformer>
}
type VitePlugin = any
interface SvelteIntlPrecompile {
(localesRoot: string, prefix?: string): VitePlugin
(localesRoot: string, options?: Options): VitePlugin
transformCode: typeof transformCode
}
export function transformCode(code: string, options?: Record<string, any>): string
declare const svelteIntlPrecompile: SvelteIntlPrecompile
export default svelteIntlPrecompile