Type aliases
NominalType
NominalType<
TKey
,TMarker
> ={ readonly [K in `__${TKey}:@solana/kit`]: TMarker }
Use this to produce a nominal type.
This can be intersected with other base types to produce custom branded types.
Type Parameters
Type Parameter | Description |
---|---|
TKey extends string | The name of the nominal type. This distinguishes one nominal type from another. |
TMarker extends string | The type of the value the nominal type can take. |