Assertive.ts - Core API / TypeFactory
Interface: TypeFactory<S, A>
Used to instantiate a specific assertion type.
Type parameters
Name | Type | Description |
---|---|---|
S |
S |
the type of the factory’s value |
A |
extends Assertion <S > |
the type of the assertion factory |
Table of contents
Properties
Properties
Factory
• Factory: AssertionFactory
<S
, A
>
Assertion constructor.
Defined in
packages/core/src/lib/helpers/TypeFactories.ts:25
predicate
• predicate: (value
: unknown
) => value is S
A predicate function to check the type of the factory’s value.
Param
the factory’s value
Type declaration
▸ (value
): value is S
A predicate function to check the type of the factory’s value.
Parameters
Name | Type | Description |
---|---|---|
value |
unknown |
the factory’s value |
Returns
value is S
Defined in
packages/core/src/lib/helpers/TypeFactories.ts:31
typeName
• typeName: string
The type of this factory.