fix: typing

This commit is contained in:
2026-03-13 15:36:35 +08:00
parent c668dce348
commit 2e04934881
4 changed files with 24 additions and 3 deletions
+16
View File
@@ -0,0 +1,16 @@
/// <reference types="vite/client" />
interface WebpackContext {
(path: string): { default?: string } | string;
keys(): string[];
}
interface ImportMeta {
webpackContext(
directory: string,
options: {
recursive?: boolean;
regExp?: RegExp;
}
): WebpackContext;
}