printf 上級 #template-literal

by null @Bestmain-YS

挑戦する    English

汎用的な`Format`を実装します。 例えば、 ```ts type FormatCase1 = Format<'%sabc'>; // FormatCase1 : string => string type FormatCase2 = Format<'%s%dabc'>; // FormatCase2 : string => number => string type FormatCase3 = Format<'sdabc'>; // FormatCase3 : string type FormatCase4 = Format<'sd%abc'>; // FormatCase4 : string ```
戻る 解答を共有 解答を確認