33 lines
527 B
TypeScript
33 lines
527 B
TypeScript
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
|
|
}
|