Vinyl
Preparing search index...
@amzn/vinyl-util
Json
Type Alias Json<T>
Json
:
IsAny
<
T
>
extends
true
?
AnyRecord
:
unknown
extends
T
?
never
:
T
extends
bigint
|
symbol
|
Fun
?
string
:
T
extends
{
toJSON
()
:
R
}
?
R
:
T
extends
boolean
|
number
|
string
|
null
|
undefined
?
T
:
T
extends
Set
<
infer
U
>
?
Json
<
U
>
[]
:
T
extends
readonly
any
[]
?
Json
<
T
[
number
]
>
[]
:
{
[
P
in
keyof
T
]
:
Json
<
T
[
P
]
>
}
A representation of the conversion the toJson function will apply to make an input JSON compatible.
Type Parameters
T
=
any
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Vinyl
Loading...
A representation of the conversion the toJson function will apply to make an input JSON compatible.