@samatawy/rules
Preparing search index...
index
AnnotationRegistry
Class AnnotationRegistry
Index
Constructors
constructor
Properties
definitions
Methods
register
has
get
list
clear
parse
coerce
Value
read
Parsed
Value
try
Parse
Value
read
String
Value
read
Date
Value
coerce
Date
Value
read
Array
Value
is
Email
Value
Constructors
constructor
new
AnnotationRegistry
()
:
AnnotationRegistry
Returns
AnnotationRegistry
Properties
Protected
definitions
definitions
:
Map
<
string
,
AnnotationDefinition
>
Methods
register
register
(
name
:
string
,
type
:
AnnotationType
)
:
void
Parameters
name
:
string
type
:
AnnotationType
Returns
void
has
has
(
name
:
string
)
:
boolean
Parameters
name
:
string
Returns
boolean
get
get
(
name
:
string
)
:
AnnotationDefinition
|
undefined
Parameters
name
:
string
Returns
AnnotationDefinition
|
undefined
list
list
()
:
AnnotationDefinition
[]
Returns
AnnotationDefinition
[]
clear
clear
()
:
void
Returns
void
parse
parse
(
name
:
string
,
rawValue
:
string
)
:
unknown
Parameters
name
:
string
rawValue
:
string
Returns
unknown
Protected
coerce
Value
coerceValue
(
rawValue
:
string
,
type
:
AnnotationType
,
name
:
string
)
:
unknown
Parameters
rawValue
:
string
type
:
AnnotationType
name
:
string
Returns
unknown
Protected
read
Parsed
Value
readParsedValue
(
rawValue
:
string
,
name
:
string
)
:
any
Parameters
rawValue
:
string
name
:
string
Returns
any
Protected
try
Parse
Value
tryParseValue
(
rawValue
:
string
)
:
unknown
Parameters
rawValue
:
string
Returns
unknown
Protected
read
String
Value
readStringValue
(
rawValue
:
string
,
name
:
string
)
:
string
Parameters
rawValue
:
string
name
:
string
Returns
string
Protected
read
Date
Value
readDateValue
(
rawValue
:
string
,
name
:
string
)
:
Date
Parameters
rawValue
:
string
name
:
string
Returns
Date
Protected
coerce
Date
Value
coerceDateValue
(
value
:
unknown
,
name
:
string
)
:
Date
Parameters
value
:
unknown
name
:
string
Returns
Date
Protected
read
Array
Value
readArrayValue
(
rawValue
:
string
,
name
:
string
,
coerce
:
(
value
:
unknown
)
=>
unknown
,
)
:
unknown
[]
Parameters
rawValue
:
string
name
:
string
coerce
:
(
value
:
unknown
)
=>
unknown
Returns
unknown
[]
Protected
is
Email
Value
isEmailValue
(
value
:
string
)
:
boolean
Parameters
value
:
string
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
definitions
Methods
register
has
get
list
clear
parse
coerce
Value
read
Parsed
Value
try
Parse
Value
read
String
Value
read
Date
Value
coerce
Date
Value
read
Array
Value
is
Email
Value
@samatawy/rules
Loading...