@bemedev/types
Version:
Type definitions for Bemedev projects
25 lines • 1.17 kB
TypeScript
import type { Digit } from '../types/types';
export declare const numbers: import("../utils.js").FnBasic<(arg: number) => number, {
readonly is: (arg: unknown) => arg is number;
readonly getString: <T extends number | string>(arg: T) => `${T}`;
readonly digit: import("../utils.js").FnBasic<(arg: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9) => 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9, {
readonly is: (value: unknown) => value is Digit;
} & {
readonly forceCast: (arg: unknown) => 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
readonly dynamic: <U extends 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9>(arg: U) => U;
}>;
readonly type: NumberConstructor;
readonly ZERO: 0;
readonly ONE: 1;
readonly MINUS_1: -1;
readonly bigint: import("../utils.js").FnBasic<(arg: bigint) => bigint, {
readonly is: (value: unknown) => value is bigint;
} & {
readonly forceCast: (arg: unknown) => bigint;
readonly dynamic: <U extends bigint>(arg: U) => U;
}>;
} & {
readonly forceCast: (arg: unknown) => number;
readonly dynamic: <U extends number>(arg: U) => U;
}>;
//# sourceMappingURL=numbers.d.ts.map