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
@jsonjoy.com/json-type
/
lib
/
value
/
util.d.ts
8 lines
(7 loc)
•
287 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
{
Value
}
from
'./Value'
;
import
{
ObjectValue
}
from
'./ObjectValue'
;
import
*
as
classes
from
'../type'
;
export
declare
const
value
: { <T
extends
classes.
ObjectType
>(
type
: T,
data
:
unknown
):
ObjectValue
<T>; <T
extends
classes.
Type
>(
type
: T,
data
:
unknown
):
Value
<T>; };