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 Parameter | Default type |
---|---|
Name extends TypeName | - |
Input | - |
TransformError extends TypeError | never |
Type Parameters
Type Parameter | Default type |
---|---|
PName extends TypeName | - |
P extends Input | - |
PInput | - |
PParent | - |
PError extends TypeError | never |
PParentError extends TypeError | never |
Parameters
Parameter | Type |
---|---|
parent | Type <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
>