FuncType - v0.9.5
GitHub
Preparing search index...
ValidatedBrandCompanion
Interface ValidatedBrandCompanion<K, T>
interface
ValidatedBrandCompanion
<
K
extends
string
,
T
>
{
brand
:
K
;
from
:
(
value
:
T
)
=>
Either
<
string
,
ValidatedBrand
<
K
,
T
>
>
;
is
:
(
value
:
unknown
)
=>
value
is
ValidatedBrand
<
K
,
T
>
;
of
:
(
value
:
T
)
=>
Option
<
ValidatedBrand
<
K
,
T
>
>
;
refine
:
<
K2
extends
string
>
(
brand
:
K2
,
validate
:
(
value
:
Brand
<
K
,
T
>
)
=>
boolean
,
)
=>
ValidatedBrandCompanion
<
K2
,
Brand
<
K
,
T
>
>
;
unsafeOf
:
(
value
:
T
)
=>
ValidatedBrand
<
K
,
T
>
;
unwrap
:
(
branded
:
Brand
<
K
,
T
>
)
=>
T
;
validate
:
(
value
:
T
)
=>
boolean
;
}
Type Parameters
K
extends
string
T
Index
Properties
brand
from
is
of
refine
unsafe
Of
unwrap
validate
Properties
Readonly
brand
brand
:
K
Readonly
from
from
:
(
value
:
T
)
=>
Either
<
string
,
ValidatedBrand
<
K
,
T
>
>
Readonly
is
is
:
(
value
:
unknown
)
=>
value
is
ValidatedBrand
<
K
,
T
>
Readonly
of
of
:
(
value
:
T
)
=>
Option
<
ValidatedBrand
<
K
,
T
>
>
Readonly
refine
refine
:
<
K2
extends
string
>
(
brand
:
K2
,
validate
:
(
value
:
Brand
<
K
,
T
>
)
=>
boolean
,
)
=>
ValidatedBrandCompanion
<
K2
,
Brand
<
K
,
T
>
>
Readonly
unsafe
Of
unsafeOf
:
(
value
:
T
)
=>
ValidatedBrand
<
K
,
T
>
Readonly
unwrap
unwrap
:
(
branded
:
Brand
<
K
,
T
>
)
=>
T
Readonly
validate
validate
:
(
value
:
T
)
=>
boolean
Settings
Member Visibility
Inherited
Internal
Theme
OS
Light
Dark
On This Page
Properties
brand
from
is
of
refine
unsafe
Of
unwrap
validate
GitHub
FuncType - v0.9.5
Loading...