API reference / @evolu/common / Type / TransformBrandFactory

Type Alias: TransformBrandFactory()<Name, Input, TransformError>

type TransformBrandFactory<Name, Input, TransformError> = <PName, P, PInput, PParent, PError, PParentError>(parent) => TransformType<Type<PName, P, PInput, PError, PParent, PParentError>, BrandType<Type<PName, P, PInput, PError, PParent, PParentError>, Name, never, PError | PParentError>, TransformError>;

Defined in: packages/common/src/Type.ts:953

Type Parameters

Type ParameterDefault type
Name extends TypeName-
Input-
TransformError extends TypeErrornever

Type Parameters

Type ParameterDefault type
PName extends TypeName-
P extends Input-
PInput-
PParent-
PError extends TypeErrornever
PParentError extends TypeErrornever

Parameters

ParameterType
parentType<PName, P, PInput, PError, PParent, PParentError>

Returns

TransformType<Type<PName, P, PInput, PError, PParent, PParentError>, BrandType<Type<PName, P, PInput, PError, PParent, PParentError>, Name, never, PError | PParentError>, TransformError>

Was this page helpful?