Files
NapCatQQ/.pnpm-store/v3/files/02/507ed76e704a9577c3151e9c261b3bc0dc3407517df2514528da5520d38d81f0d6de3b1ac0db8c907325f2408f214f1a4fb5800100aaac7e622f60e10eb101
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

26 lines
821 B
Plaintext

/**
* Returns an array of numbers, starting at `start` and ending at `end`.
* @param start number
* @param end number
* @returns number[]
*/
declare function range(start: number, end: number): number[];
/**
* Clamps a value between a minimum and maximum range.
*
* @param value - The value to be clamped.
* @param min - The minimum value of the range.
* @param max - The maximum value of the range.
* @returns The clamped value.
*/
declare function clamp(value: number, min: number, max: number): number;
/**
* Clamps a value between 0 and a maximum value.
* @param value - The value to clamp.
* @param max - The maximum value to clamp to. Defaults to 100.
* @returns The clamped value.
*/
declare function clampPercentage(value: number, max?: number): number;
export { clamp, clampPercentage, range };