UNPKG
@ekb1zh/type
Version:
latest (5.0.1)
5.0.1
5.0.0
4.0.3
4.0.2
4.0.1
3.0.2
3.0.1
3.0.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.0
Simple tool for getting data type
github.com/ekb1zh/type
ekb1zh/type
@ekb1zh/type
/
dist
/
index.d.ts
3 lines
(2 loc)
•
196 B
TypeScript
View Raw
1
2
3
export
declare
type
Kind
=
'null'
|
'undefined'
|
'boolean'
|
'number'
|
'string'
|
'symbol'
|
'bigint'
|
'function'
|
'array'
|
'object'
;
export
declare
const
typeOf
:
(
value
:
unknown
) =>
Kind
;