feat: 🎸 初始化项目

This commit is contained in:
chenkl
2020-12-14 17:32:37 +08:00
commit 26d4c7c568
221 changed files with 23505 additions and 0 deletions

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

@@ -0,0 +1,25 @@
// 空对象
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 Normal file
View File

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