Preparing search index...
The search index is not available
Additional types and utils for TypeScript
type-plus
flavor
Function flavor
flavor
<
F
>
(
type
)
:
(
<
T
>
(
subject
:
T
)
=>
Flavor
<
F
,
Widen
<
T
>
>
)
Creates a brand creator with the specified type.
Type Parameters
F
extends
string
Parameters
type
:
F
Returns
(
<
T
>
(
subject
:
T
)
=>
Flavor
<
F
,
Widen
<
T
>
>
)
<
T
>
(
subject
)
:
Flavor
<
F
,
Widen
<
T
>
>
Type Parameters
T
Parameters
subject
:
T
Returns
Flavor
<
F
,
Widen
<
T
>
>
flavor
<
F
,
T
>
(
type
,
subject
)
:
Flavor
<
F
,
Widen
<
T
>
>
Creates a branded value of specified type.
Type Parameters
F
extends
string
T
Parameters
type
:
F
subject
:
T
Returns
Flavor
<
F
,
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.