Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6e321c49
authored
Mar 27, 2023
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 去除没必要的declare
parent
3c6bf378
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
types/global.d.ts
+13
-13
No files found.
types/global.d.ts
View file @
6e321c49
export
{}
export
{}
declare
global
{
declare
global
{
declare
interface
Fn
<
T
=
any
>
{
interface
Fn
<
T
=
any
>
{
(...
arg
:
T
[]):
T
(...
arg
:
T
[]):
T
}
}
declare
type
Nullable
<
T
>
=
T
|
null
type
Nullable
<
T
>
=
T
|
null
declare
type
ElRef
<
T
extends
HTMLElement
=
HTMLDivElement
>
=
Nullable
<
T
>
type
ElRef
<
T
extends
HTMLElement
=
HTMLDivElement
>
=
Nullable
<
T
>
declare
type
Recordable
<
T
=
any
,
K
=
string
>
=
Record
<
K
extends
null
|
undefined
?
string
:
K
,
T
>
type
Recordable
<
T
=
any
,
K
=
string
>
=
Record
<
K
extends
null
|
undefined
?
string
:
K
,
T
>
declare
type
ComponentRef
<
T
>
=
InstanceType
<
T
>
type
ComponentRef
<
T
>
=
InstanceType
<
T
>
declare
type
LocaleType
=
'zh-CN'
|
'en'
type
LocaleType
=
'zh-CN'
|
'en'
declare
type
AxiosHeaders
=
type
AxiosHeaders
=
|
'application/json'
|
'application/json'
|
'application/x-www-form-urlencoded'
|
'application/x-www-form-urlencoded'
|
'multipart/form-data'
|
'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
params
?:
any
data
?:
any
data
?:
any
url
?:
string
url
?:
string
...
@@ -32,17 +32,17 @@ declare global {
...
@@ -32,17 +32,17 @@ declare global {
responseType
?:
AxiosResponseType
responseType
?:
AxiosResponseType
}
}
declare
interface
IResponse
<
T
=
any
>
{
interface
IResponse
<
T
=
any
>
{
code
:
string
code
:
string
data
:
T
extends
any
?
T
:
T
&
any
data
:
T
extends
any
?
T
:
T
&
any
}
}
declare
interface
PageParam
{
interface
PageParam
{
pageSize
?:
number
pageSize
?:
number
pageNo
?:
number
pageNo
?:
number
}
}
declare
interface
Tree
{
interface
Tree
{
id
:
number
id
:
number
name
:
string
name
:
string
children
?:
Tree
[]
|
any
[]
children
?:
Tree
[]
|
any
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment