diff --git a/types/global.d.ts b/types/global.d.ts index 613553d0..55420fa9 100644 --- a/types/global.d.ts +++ b/types/global.d.ts @@ -8,6 +8,17 @@ declare global { list: T; total: number; } -} -export {}; + type DialogType = { + title?: string; + visible: boolean; + }; + + type OptionType = { + value: string; + label: string; + checked?: boolean; + children?: OptionType[]; + }; + +} diff --git a/types/index.d.ts b/types/index.d.ts deleted file mode 100644 index c73642a0..00000000 --- a/types/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -declare type DialogType = { - title?: string; - visible: boolean; -}; - -declare type OptionType = { - value: string; - label: string; - checked?: boolean; - children?: OptionType[]; -};