import type { NumberLiteral, ParseNumberLiteral } from '../index.js'; /** * Coerce either a `number` or a `NumberLiteral` into a `number`. * * @remarks This is useful for finalizing a `NumberLike` into a `number`. * @example * ``` * type A = IntoNumber<1> // 1 * type B = IntoNumber<"1"> // 1 * ``` */ export type IntoNumber = T extends NumberLiteral ? ParseNumberLiteral : T;