Back to Type Challenges

README.Ko

questions/00531-medium-string-to-union/README.ko.md

latest1.9 KB
Original Source
<!--info-header-start--><h1>String to Union </h1><blockquote><p>by Andrey Krasovsky <a href="https://github.com/bre30kra69cs" target="_blank">@bre30kra69cs</a></p></blockquote><p><a href="https://tsch.js.org/531/play/ko" target="_blank"></a> &nbsp;&nbsp;&nbsp;<a href="./README.md" target="_blank"></a> <a href="./README.zh-CN.md" target="_blank"></a> <a href="./README.ja.md" target="_blank"></a> </p><!--info-header-end-->

문자열 인수를 입력받는 String to Union 유형을 구현하세요. 출력은 입력 문자열의 Union type이어야 합니다.

예시:

ts
type Test = "123"
type Result = StringToUnion<Test> // expected to be "1" | "2" | "3"
<!--info-footer-start-->

<a href="../../README.ko.md" target="_blank"></a> <a href="https://tsch.js.org/531/answer/ko" target="_blank"></a> <a href="https://tsch.js.org/531/solutions" target="_blank"></a> <!--info-footer-end-->