[其他] 初始化项目结构
This commit is contained in:
1
src/module/type/index.ts
Normal file
1
src/module/type/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './public'
|
||||
17
src/module/type/public.ts
Normal file
17
src/module/type/public.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import type { App, DefineComponent } from 'vue'
|
||||
export type StringObject = Record<string, unknown>
|
||||
|
||||
export type UnknownObject = Record<string | number, unknown>
|
||||
|
||||
export type UnknownFunction = (...arg: unknown[]) => unknown
|
||||
|
||||
export type IDefineComponent<Props = UnknownObject> = DefineComponent<Props> & {
|
||||
install: (app: App, options?: InstallOptions) => void
|
||||
}
|
||||
|
||||
export interface InstallOptions extends StringObject {
|
||||
/** Pagination Attributes */
|
||||
pagination?: null
|
||||
/** Menu Attributes */
|
||||
menu?: null
|
||||
}
|
||||
Reference in New Issue
Block a user