instanceOf<T, Input = unknown>(constructor: Object): Schema<T, Input>
constructor: Object
import * as x from 'unhoax'const schema = x.instanceOf(Date)class User { … }x.instanceOf(User).parse(new User()) // succeeds Copy
import * as x from 'unhoax'const schema = x.instanceOf(Date)class User { … }x.instanceOf(User).parse(new User()) // succeeds
Example