( constructor: C, annotations?: Annotations.Declaration<InstanceType<C>> | undefined )
| 6736 | * @since 3.10.0 |
| 6737 | */ |
| 6738 | export function instanceOf<C extends abstract new(...args: any) => any, Iso = InstanceType<C>>( |
| 6739 | constructor: C, |
| 6740 | annotations?: Annotations.Declaration<InstanceType<C>> | undefined |
| 6741 | ): instanceOf<InstanceType<C>, Iso> { |
| 6742 | return declare((u): u is InstanceType<C> => u instanceof constructor, annotations) |
| 6743 | } |
| 6744 | /** |
| 6745 | * Constructs an `SchemaAST.Link` that describes how a value of type `T` encodes to and decodes from a `To` schema. |
| 6746 | * Used when building low-level AST transformations that bridge two schema types. |
no test coverage detected