feat(serialize, parse): Number, String, Array, ConstString, ConstArray
This commit is contained in:
32
types/limits.d.ts
vendored
Normal file
32
types/limits.d.ts
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
export interface IntLimit {
|
||||
MIN_VALUE: number
|
||||
MAX_VALUE: number
|
||||
}
|
||||
|
||||
export interface BigIntLimit {
|
||||
MIN_VALUE: bigint
|
||||
MAX_VALUE: bigint
|
||||
}
|
||||
|
||||
export interface FloatLimit {
|
||||
MIN_VALUE: number
|
||||
MAX_VALUE: number
|
||||
MIN_NORMAL_VALUE: number
|
||||
MIN_SAFE_INTEGER: number
|
||||
MAX_SAFE_INTEGER: number
|
||||
EPSILON: number
|
||||
}
|
||||
|
||||
export const limits: {
|
||||
i8: IntLimit
|
||||
i16: IntLimit
|
||||
i32: IntLimit
|
||||
i64: BigIntLimit
|
||||
u8: IntLimit
|
||||
u16: IntLimit
|
||||
u32: IntLimit
|
||||
u64: BigIntLimit
|
||||
bool: IntLimit
|
||||
f32: FloatLimit
|
||||
f64: FloatLimit
|
||||
};
|
||||
Reference in New Issue
Block a user