Preparing search index...
The search index is not available
type-plus - v8.0.0-beta.7
type-plus
brand
Function brand
brand
<
B
extends
string
>
(
type
:
B
)
:
<
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
>
>
brand
<
B
extends
string
,
T
>
(
type
:
B
,
subject
:
T
)
:
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.7
Loading...
Creates a brand creator with the specified type.