{"id":17075,"date":"2026-08-04T14:58:49","date_gmt":"2026-08-04T05:58:49","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=17075"},"modified":"2026-08-04T14:59:56","modified_gmt":"2026-08-04T05:59:56","slug":"typescript-%ea%b0%9d%ec%b2%b4-%ed%83%80%ec%9e%85%ec%9d%98-%ed%82%a4-%ea%b0%92%ec%9c%bc%eb%a1%9c-%ea%b5%ac%ec%84%b1%eb%90%9c-type%ea%b3%bc-%ed%82%a4%ec%9d%98-%ea%b0%92%ec%9c%bc%eb%a1%9c-%ea%b5%ac","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=17075","title":{"rendered":"TypeScript, \uac1d\uccb4 \ud0c0\uc785\uc758 \ud0a4 \uac12\uc73c\ub85c \uad6c\uc131\ub41c Type\uacfc \ud0a4\uc758 \uac12\uc73c\ub85c \uad6c\uc131\ub41c Type \uc815\uc758"},"content":{"rendered":"<p>\ub2e4\uc74c\uacfc \uac19\uc740 \uac1d\uccb4\uac00 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"typescript\">\r\ntype User = {\r\n    name: \"nameValue\"\r\n    age: \"ageValue\"\r\n};\r\n<\/pre>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"typescript\">User<\/code> \ud0c0\uc785\uc744 \uad6c\uc131\ud558\ub294 \ud0a4 \uac12\uc5d0 \ub300\ud55c \ud0c0\uc785\uc740 <code class=\"EnlighterJSRAW\" data-enlighter-language=\"typescript\">\"name\" | \"age\"<\/code>\uc785\ub2c8\ub2e4. \uc774\ub97c \uc5bb\ub294 \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"typescript\">\r\ntype KeysType&lt;T extends object> = keyof T & string;\r\ntype KT = KeysType&lt;User>; \/\/ \"name\" | \"age\"\r\n<\/pre>\n<p>\uc774\ubc88\uc5d0\ub294 <code class=\"EnlighterJSRAW\" data-enlighter-language=\"typescript\">User<\/code> \ud0c0\uc785\uc758 \ud0a4\uc5d0 \ub300\ud55c \uac12\uc5d0 \ub300\ud55c \ud0c0\uc785\uc740 <code class=\"EnlighterJSRAW\" data-enlighter-language=\"typescript\">\"nameValue\" | \"ageValue\"<\/code>\uc785\ub2c8\ub2e4. \uc774\ub97c \uc5bb\ub294 \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"typescript\">\r\ntype ValuesType&lt;T extends object> = T[keyof T & string];\r\ntype VT = ValuesType&lt;User>; \/\/ \"nameValue\" | \"ageValue\"\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\ub2e4\uc74c\uacfc \uac19\uc740 \uac1d\uccb4\uac00 \uc788\uc2b5\ub2c8\ub2e4. type User = { name: &#8220;nameValue&#8221; age: &#8220;ageValue&#8221; }; User \ud0c0\uc785\uc744 \uad6c\uc131\ud558\ub294 \ud0a4 \uac12\uc5d0 \ub300\ud55c \ud0c0\uc785\uc740 &#8220;name&#8221; | &#8220;age&#8221;\uc785\ub2c8\ub2e4. \uc774\ub97c \uc5bb\ub294 \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. type KeysType&lt;T extends object> = keyof T &#038; string; type KT = KeysType&lt;User>; \/\/ &#8220;name&#8221; | &#8220;age&#8221; \uc774\ubc88\uc5d0\ub294 User \ud0c0\uc785\uc758 \ud0a4\uc5d0 \ub300\ud55c \uac12\uc5d0 \ub300\ud55c \ud0c0\uc785\uc740 &#8220;nameValue&#8221; | &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=17075\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;TypeScript, \uac1d\uccb4 \ud0c0\uc785\uc758 \ud0a4 \uac12\uc73c\ub85c \uad6c\uc131\ub41c Type\uacfc \ud0a4\uc758 \uac12\uc73c\ub85c \uad6c\uc131\ub41c Type \uc815\uc758&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[157],"tags":[],"class_list":["post-17075","post","type-post","status-publish","format-standard","hentry","category-typescript"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/17075","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17075"}],"version-history":[{"count":4,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/17075\/revisions"}],"predecessor-version":[{"id":17077,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/17075\/revisions\/17077"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17075"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}