From 07e3f1b1f1206e2c96a444dae674518c875386ea Mon Sep 17 00:00:00 2001 From: Wisdom Date: Sun, 28 Apr 2024 15:48:12 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=82=EF=B8=8F=20feat:=20prune=20types=20ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc-auto-import-costom.json | 6 ------ src/types/index.d.ts | 27 --------------------------- 2 files changed, 33 deletions(-) delete mode 100644 .eslintrc-auto-import-costom.json diff --git a/.eslintrc-auto-import-costom.json b/.eslintrc-auto-import-costom.json deleted file mode 100644 index 0a5939b..0000000 --- a/.eslintrc-auto-import-costom.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "globals": { - "defineModel": true, - "PropsOptionsMixed": true - } -} diff --git a/src/types/index.d.ts b/src/types/index.d.ts index 127d625..532fd16 100644 --- a/src/types/index.d.ts +++ b/src/types/index.d.ts @@ -69,31 +69,4 @@ declare module 'vue-router' { } } -declare global { - interface RenderComponent { - data?: any - component?: any - } - type ComponentOriginOptions = { - title: string - headerDescText?: string - headerIcon?: string - confirmText?: string - maxHeight?: number | string | 'auto' - dialogWidth?: string | '500px' - disabledConfirmButton?: boolean | false - hideFooter?: boolean | false - renderComponent: RenderComponent - onConfirm?: (instance: any, context: any) => Promise - // onCancel?: (instance: Ref, context: ComponentInternalInstance) => Promise - } - - type Mutable = { - -readonly [K in keyof DialogProps]: DialogProps[K] - } - - type PropsOptionsUnion = ComponentOriginOptions | Mutable - type PropsOptionsMixed = Partial - -} export { }