HikaruEgashira
Follow
Highlights
Pinned Loading
-
-
-
C言語などによくあるprintfにTypeScriptで型をつける
C言語などによくあるprintfにTypeScriptで型をつける 1type Parser<T> =
2T extends `%s${infer U}`? [string, ...Parser<U>]
3: T extends `%d${infer U}` ? [number, ...Parser<U>]
4: T extends `${string}${infer U}` ? Parser<U>
5: [];
-
-
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.