Skip to content

IsJsonUnserializableRoot

IsJsonUnserializableRoot<T> = T extends object ? IsJsonUnserializableRoot<TJson> : T extends JsonUnserializableRoot ? true : false

Defined in: packages/core/src/types/json.ts:35

Whether JSON.stringify returns undefined for a root value of type T.

toJSON is resolved first, so Date is serializable while a class whose toJSON returns undefined is not.

T