Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/typical/strnum.ts>Mult

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Mult
import { type Mult } from "https://deno.land/x/rimbu@1.0.2/typical/strnum.ts";

Type Parameters

N1 extends string
N2 extends string
definition: N2 extends Str.Append<infer N2Start, Digit> ? N2Start extends "" ? MultDigit<N1, Digit & N2> : N2 extends Str.Append<N2Start, infer N2Last> ? Add<MultDigit<N1, Digit & N2Last>, Str.Append<Mult<N1, N2Start>, "0">> : never : never