17 lines
296 B
TypeScript
17 lines
296 B
TypeScript
|
|
/// <reference types="vite/client" />
|
||
|
|
|
||
|
|
interface WebpackContext {
|
||
|
|
(path: string): { default?: string } | string;
|
||
|
|
keys(): string[];
|
||
|
|
}
|
||
|
|
|
||
|
|
interface ImportMeta {
|
||
|
|
webpackContext(
|
||
|
|
directory: string,
|
||
|
|
options: {
|
||
|
|
recursive?: boolean;
|
||
|
|
regExp?: RegExp;
|
||
|
|
}
|
||
|
|
): WebpackContext;
|
||
|
|
}
|