wip: 重构中
This commit is contained in:
25
src/types/glob.d.ts
vendored
25
src/types/glob.d.ts
vendored
@@ -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
|
||||
}
|
||||
16
src/types/vue.config.d.ts
vendored
16
src/types/vue.config.d.ts
vendored
@@ -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[]
|
||||
}
|
||||
Reference in New Issue
Block a user