( constructor: C, annotations?: Annotations.Declaration<InstanceType<C>> | undefined )
| 6494 | * @since 3.10.0 |
| 6495 | */ |
| 6496 | export function instanceOf<C extends abstract new(...args: any) => any, Iso = InstanceType<C>>( |
| 6497 | constructor: C, |
| 6498 | annotations?: Annotations.Declaration<InstanceType<C>> | undefined |
| 6499 | ): instanceOf<InstanceType<C>, Iso> { |
| 6500 | return declare((u): u is InstanceType<C> => u instanceof constructor, annotations) |
| 6501 | } |
| 6502 | |
| 6503 | /** |
| 6504 | * Constructs an `SchemaAST.Link` that describes how a value of type `T` encodes to and decodes from a `To` schema. |
no test coverage detected