Preparing search index...
The search index is not available
Additional types and utils for TypeScript
type-plus
brand
Function brand
brand
<
B
>
(
type
)
:
(
<
T
>
(
subject
:
T
)
=>
Brand
<
B
,
Widen
<
T
>
>
)
Creates a brand creator with the specified type.
Type Parameters
B
extends
string
Parameters
type
:
B
Returns
(
<
T
>
(
subject
:
T
)
=>
Brand
<
B
,
Widen
<
T
>
>
)
<
T
>
(
subject
)
:
Brand
<
B
,
Widen
<
T
>
>
Type Parameters
T
Parameters
subject
:
T
Returns
Brand
<
B
,
Widen
<
T
>
>
brand
<
B
,
T
>
(
type
,
subject
)
:
Brand
<
B
,
Widen
<
T
>
>
Creates a branded value of specified type.
Type Parameters
B
extends
string
T
Parameters
type
:
B
subject
:
T
Returns
Brand
<
B
,
Widen
<
T
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
type-plus - v8.0.0-beta.6
Loading...
Creates a brand creator with the specified type.