wip: 重构中

This commit is contained in:
kailong321200875
2021-10-10 09:59:52 +08:00
parent 4c4903e806
commit 41ca05dce2
272 changed files with 1173 additions and 43458 deletions

25
src/types/glob.d.ts vendored
View File

@@ -1,25 +0,0 @@
// 空对象
export interface EmptyObj {
[key: string]: any
}
// 对象方法
export interface EmptyObjFun {
[key: string]: Function
}
declare type Nullable<T> = T | null
// 任意对象
declare interface IObj<T = any> {
[key: string]: T
[key: number]: T
}
declare type KeyString<T = any> = {
[key: string]: T
}
declare interface Fn<T = any, R = T> {
(...arg: T[]): R
}

View File

@@ -1,16 +0,0 @@
// 多页模版子接口
export interface PageItemModule {
template: string,
title?: string
}
// 多页模版接口
export interface PagesModule {
[key: string]: PageItemModule
}
// 多页入口模版子接口
export interface EntryItemModule extends PageItemModule {
entry: string,
chunks: string[]
}