Preparing search index...
The search index is not available
@tarpit/judge
@tarpit/judge
Judgement
Class Judgement<T>
Type Parameters
T
Hierarchy
Reference
<
T
>
Judgement
Index
Constructors
constructor
Properties
data
Methods
do_
if
ensure
get
get_
if
on_
error
Constructors
constructor
new
Judgement
<
T
>
(
data
)
:
Judgement
<
T
>
Type Parameters
T
Parameters
data
:
undefined
|
T
Returns
Judgement
<
T
>
Properties
data
data
:
undefined
|
T
Methods
do_
if
do_
if
<
M
,
P
>
(
prop
,
matcher
,
then
)
:
void
Type Parameters
M
extends
RegExp
|
Matcher
<
any
>
P
extends
string
Parameters
prop
:
P
matcher
:
M
then
:
(
(
res
)
=>
void
)
(
res
)
:
void
Parameters
res
:
PathValue
<
T
,
P
>
Returns
void
Returns
void
ensure
ensure
<
M
,
P
>
(
prop
,
matcher
,
on_error
?
)
:
Exclude
<
PathValue
<
T
,
P
>
,
undefined
>
Type Parameters
M
extends
RegExp
|
Matcher
<
any
>
P
extends
string
Parameters
prop
:
P
matcher
:
M
Optional
on_error
:
OnJudgementError
Returns
Exclude
<
PathValue
<
T
,
P
>
,
undefined
>
get
get
(
)
:
T
Returns
T
get
<
P
>
(
path
)
:
undefined
|
PathValue
<
T
,
P
>
Type Parameters
P
extends
string
Parameters
path
:
P
Returns
undefined
|
PathValue
<
T
,
P
>
get
<
P
>
(
path
,
def
)
:
Exclude
<
PathValue
<
T
,
P
>
,
undefined
>
Type Parameters
P
extends
string
Parameters
path
:
P
def
:
PathValue
<
T
,
P
>
Returns
Exclude
<
PathValue
<
T
,
P
>
,
undefined
>
get_
if
get_
if
<
M
,
P
>
(
prop
,
matcher
)
:
undefined
|
Exclude
<
PathValue
<
T
,
P
>
,
undefined
>
Type Parameters
M
extends
RegExp
|
Matcher
<
any
>
P
extends
string
Parameters
prop
:
P
matcher
:
M
Returns
undefined
|
Exclude
<
PathValue
<
T
,
P
>
,
undefined
>
get_
if
<
M
,
P
>
(
prop
,
matcher
,
def
)
:
Exclude
<
PathValue
<
T
,
P
>
,
undefined
>
Type Parameters
M
extends
RegExp
|
Matcher
<
any
>
P
extends
string
Parameters
prop
:
P
matcher
:
M
def
:
MatcherInferType
<
M
>
Returns
Exclude
<
PathValue
<
T
,
P
>
,
undefined
>
Protected
on_
error
on_
error
(
prop
,
desc
,
on_error
?
)
:
never
Parameters
prop
:
string
desc
:
MismatchDescription
Optional
on_error
:
(
(
prop
,
desc
)
=>
string
)
(
prop
,
desc
)
:
string
Parameters
prop
:
string
desc
:
MismatchDescription
Returns
string
Returns
never
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
src
matcher.ts
Jtl
Matcher
JudgementRule
MatcherInferType
MismatchDescription
judgement.ts
Judgement
OnJudgementError
reference.ts
Reference
Generated using
TypeDoc