From 6e321c49468d55512d11a4861cd2d27a12799272 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Mon, 27 Mar 2023 10:32:17 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E5=8E=BB=E9=99=A4=E6=B2=A1=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E7=9A=84declare?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/global.d.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/types/global.d.ts b/types/global.d.ts index 3685ffbd..5e292687 100644 --- a/types/global.d.ts +++ b/types/global.d.ts @@ -1,29 +1,29 @@ export {} declare global { - declare interface Fn { + interface Fn { (...arg: T[]): T } - declare type Nullable = T | null + type Nullable = T | null - declare type ElRef = Nullable + type ElRef = Nullable - declare type Recordable = Record + type Recordable = Record - declare type ComponentRef = InstanceType + type ComponentRef = InstanceType - declare type LocaleType = 'zh-CN' | 'en' + type LocaleType = 'zh-CN' | 'en' - declare type AxiosHeaders = + type AxiosHeaders = | 'application/json' | 'application/x-www-form-urlencoded' | 'multipart/form-data' - declare type AxiosMethod = 'get' | 'post' | 'delete' | 'put' | 'GET' | 'POST' | 'DELETE' | 'PUT' + type AxiosMethod = 'get' | 'post' | 'delete' | 'put' | 'GET' | 'POST' | 'DELETE' | 'PUT' - declare type AxiosResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream' + type AxiosResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream' - declare interface AxiosConfig { + interface AxiosConfig { params?: any data?: any url?: string @@ -32,17 +32,17 @@ declare global { responseType?: AxiosResponseType } - declare interface IResponse { + interface IResponse { code: string data: T extends any ? T : T & any } - declare interface PageParam { + interface PageParam { pageSize?: number pageNo?: number } - declare interface Tree { + interface Tree { id: number name: string children?: Tree[] | any[]