UNPKG
@jsonjoy.com/json-type
Version:
latest (18.0.0)
18.0.0
17.67.0
17.65.0
17.64.0
17.63.0
17.62.0
17.61.1
17.61.0
17.60.0
17.59.0
2.6.0
2.5.1
2.5.0
2.4.1
2.4.0
2.3.0
2.2.0
2.1.0
2.0.0
1.8.0
1.7.0
1.6.0
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0
High-performance JSON Pointer implementation
github.com/jsonjoy-com/json-type
@jsonjoy.com/json-type
/
lib
/
value
/
util.d.ts
8 lines
(7 loc)
•
280 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
type
*
as
classes
from
'../type'
;
import
{
ObjValue
}
from
'./ObjValue'
;
import
{
Value
}
from
'./Value'
;
export
declare
const
value
: { <T
extends
classes.
ObjType
>(
type
: T,
data
:
unknown
):
ObjValue
<T>; <T
extends
classes.
Type
>(
type
: T,
data
:
unknown
):
Value
<T>; };