Search
Preparing search index...
The search index is not available
Kryo
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"types/integer"
IntegerType
Class IntegerType
Hierarchy
IntegerType
Implements
IoType
<
number
>
VersionedType
<
number
,
Diff
>
Ord
<
number
>
Index
Constructors
constructor
Properties
_options
max
min
name
Methods
_apply
Options
clone
diff
equals
lte
patch
read
reverse
Diff
squash
test
test
Error
toJSON
write
fromJSON
Constructors
constructor
new
Integer
Type
(
options
?:
Lazy
<
IntegerTypeOptions
>
)
:
IntegerType
Parameters
Optional
options:
Lazy
<
IntegerTypeOptions
>
Returns
IntegerType
Properties
Private
_options
_options
:
Lazy
<
IntegerTypeOptions
>
max
max
:
number
min
min
:
number
name
name
:
Name
= name
Methods
Private
_apply
Options
_apply
Options
(
)
:
void
Returns
void
clone
clone
(
val
:
number
)
:
number
Parameters
val:
number
Returns
number
diff
diff
(
oldVal
:
number
, newVal
:
number
)
:
Diff
|
undefined
Parameters
oldVal:
number
newVal:
number
Returns
Diff
|
undefined
equals
equals
(
left
:
number
, right
:
number
)
:
boolean
Parameters
left:
number
right:
number
Returns
boolean
lte
lte
(
left
:
number
, right
:
number
)
:
boolean
Parameters
left:
number
right:
number
Returns
boolean
patch
patch
(
oldVal
:
number
, diff
:
Diff
|
undefined
)
:
number
Parameters
oldVal:
number
diff:
Diff
|
undefined
Returns
number
read
read<R>
(
reader
:
Reader
<
R
>
, raw
:
R
)
:
number
Type parameters
R
Parameters
reader:
Reader
<
R
>
raw:
R
Returns
number
reverse
Diff
reverse
Diff
(
diff
:
Diff
|
undefined
)
:
Diff
|
undefined
Parameters
diff:
Diff
|
undefined
Returns
Diff
|
undefined
squash
squash
(
diff1
:
Diff
|
undefined
, diff2
:
Diff
|
undefined
)
:
Diff
|
undefined
Parameters
diff1:
Diff
|
undefined
diff2:
Diff
|
undefined
Returns
Diff
|
undefined
test
test
(
val
:
number
)
:
boolean
Parameters
val:
number
Returns
boolean
test
Error
test
Error
(
val
:
number
)
:
Error
|
undefined
Parameters
val:
number
Returns
Error
|
undefined
toJSON
toJSON
(
)
:
Type
Returns
Type
write
write<W>
(
writer
:
Writer
<
W
>
, value
:
number
)
:
W
Type parameters
W
Parameters
writer:
Writer
<
W
>
value:
number
Returns
W
Static
fromJSON
fromJSON
(
options
:
Type
)
:
IntegerType
Parameters
options:
Type
Returns
IntegerType
Globals
"types/integer"
json
Integer
Type
constructor
_options
max
min
name
_apply
Options
clone
diff
equals
lte
patch
read
reverse
Diff
squash
test
test
Error
toJSON
write
fromJSON
Integer
Type
Options
Diff
Name
DEFAULT_
MAX
DEFAULT_
MIN
name
Generated using
TypeDoc