instanceOf:{ <TextendsType.Type<unknown>>( type:T, _hint?:undefined, ..._error:[ "ERROR: Obj.instanceOf does not accept Type.Type; use Type.isType(value) instead", ], ):never; <RextendsAnyRelation>( type:R, _hint?:undefined, ..._error:[ "ERROR: Obj.instanceOf does not accept relation types; use Relation.instanceOf instead", ], ):never; <SextendsAnyObj>(schema:S):(value:unknown)=>valueisInstanceType<S>; <SextendsAnyObj>(schema:S,value:unknown):valueisInstanceType<S>; } = ...
Test if an object is an instance of a given object type.
Type declaration
<TextendsType.Type<unknown>>( type:T, _hint?:undefined, ..._error:[ "ERROR: Obj.instanceOf does not accept Type.Type; use Type.isType(value) instead", ], ):never
Test if an object is an instance of a given object type.