import { Equal } from '../Equal'; import { Extends } from '../Extends'; import { If } from '../If'; import { IsAny } from '../IsAny'; import { IsUnknown } from '../IsUnknown'; /** * * Get the absolute value of a number or string * * 숫자 또는 문자열의 절대값을 가져옵니다. * * @param T - The number or string to get the absolute value of / 절대값을 가져올 숫자 또는 문자열 * * @returns The absolute value of the number or string / 숫자 또는 문자열의 절대값 * * @example * * type cases = [ * Expect, '0'>>, * Expect, '0'>>, * Expect, '10'>>, * Expect, '5'>>, * ] * * @link https://www.utilscript.site/docs/usage-commonness/absolute * */ export type Absolute = If, never, If, never, `${T}` extends `-${infer Rest extends number | bigint}` ? Absolute : If, `${T}`, If, If, never, `${T}`>, If, If, never, `${T}`>, never>>>>>;