Type alias Increaser<T, TargetType>

Increaser<T, TargetType>: IncreaserStrNum<Str<T>> extends `${infer S extends TargetType}`
    ? S
    : never

IncreaserStrNum 的包装版本,支持传入数字,字符串和bigint,且输出的时候支持指定类型

Type Parameters

  • T extends string | number | bigint

  • TargetType extends string | number | bigint = TypeOf<T>

Generated using TypeDoc