UNPKG
@jsonjoy.com/json-type
Version:
latest (17.65.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
/
codegen
/
discriminator
/
index.d.ts
6 lines
(5 loc)
•
222 B
TypeScript
View Raw
1
2
3
4
5
6
import
type
{
OrType
}
from
'../../type'
;
export
type
DiscriminatorFn
=
(
val
:
unknown
) =>
number
;
export
declare
class
DiscriminatorCodegen
{
static
readonly
get
:
(
this
:
unknown
,
or
:
OrType
<
any
>
) =>
DiscriminatorFn
; }