UNPKG

rivo

Version:

🤖 The ultimate library you need for composable type-level programming in TypeScript, powered by HKT.

7 lines (6 loc) • 196 B
/** * Replace all characters in `S` with `0`. * @private */ export type _ReplaceAllCharsWithZero<S extends string> = S extends `${string}${infer R}` ? `0${_ReplaceAllCharsWithZero<R>}` : "";