Checks whether the type is serializable and returns T, otherwise never.
T
never
Type to test
Type guard logic is based on IsJSONSerializableStrict.
type A = JSONSerializableStrict< { a: string; b: number[] } >; // { a: string; b: number[] }type B = JSONSerializableStrict< { a: string; b: undefined } >; // nevertype C = JSONSerializableStrict< ()=>void >; // nevertype D = JSONSerializableStrict< ( string | undefined )[] >; // never Copy
type A = JSONSerializableStrict< { a: string; b: number[] } >; // { a: string; b: number[] }type B = JSONSerializableStrict< { a: string; b: undefined } >; // nevertype C = JSONSerializableStrict< ()=>void >; // nevertype D = JSONSerializableStrict< ( string | undefined )[] >; // never
Checks whether the type is serializable and returns
T, otherwisenever.