mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-10 00:12:27 +08:00
fix: add type for importMetaGlob
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import { createProdMockServer } from 'vite-plugin-mock/es/createProdMockServer';
|
||||
|
||||
const modules = import.meta.glob('./**/*.ts', { eager: true });
|
||||
interface IModuleType {
|
||||
default: any[];
|
||||
}
|
||||
|
||||
const modules = import.meta.glob<IModuleType>('./**/*.ts', { eager: true });
|
||||
|
||||
const mockModules: any[] = [];
|
||||
Object.keys(modules).forEach((key) => {
|
||||
|
||||
Reference in New Issue
Block a user