Preparing search index...
The search index is not available
@tarpit/judge
@tarpit/judge
Matcher
Class Matcher<ReturnType>
Type Parameters
ReturnType
Hierarchy
Matcher
Index
Constructors
constructor
Properties
check
rule
Methods
mismatch
if
mismatch
Constructors
constructor
new
Matcher
<
ReturnType
>
(
rule
,
check
)
:
Matcher
<
ReturnType
>
Type Parameters
ReturnType
Parameters
rule
:
string
check
:
(
(
target
)
=>
boolean
)
(
target
)
:
boolean
Parameters
target
:
any
Returns
boolean
Returns
Matcher
<
ReturnType
>
Properties
Private
check
check
:
(
(
target
)
=>
boolean
)
Type declaration
(
target
)
:
boolean
Parameters
target
:
any
Returns
boolean
rule
rule
:
string
Methods
mismatch
mismatch
(
target
)
:
undefined
|
MismatchDescription
Parameters
target
:
any
Returns
undefined
|
MismatchDescription
Static
if
if
(
value
,
rule
)
:
boolean
Parameters
value
:
any
rule
:
JudgementRule
Returns
boolean
Static
mismatch
mismatch
(
value
,
rule
)
:
undefined
|
MismatchDescription
Parameters
value
:
any
rule
:
JudgementRule
Returns
undefined
|
MismatchDescription
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