{"id":16641,"date":"2025-01-15T01:32:18","date_gmt":"2025-01-14T22:02:18","guid":{"rendered":"https:\/\/www.itpiran.net\/blog\/?p=16641"},"modified":"2025-01-15T01:32:18","modified_gmt":"2025-01-14T22:02:18","slug":"what-is-typescript-and-why-should-you-use-it","status":"publish","type":"post","link":"https:\/\/www.itpiran.net\/blog\/ja\/tutorials\/what-is-typescript-and-why-should-you-use-it\/","title":{"rendered":"TypeScript \u3068\u306f\u4f55\u3067\u3059\u304b? \u306a\u305c\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3059\u304b?"},"content":{"rendered":"<h2 id=\"%d9%85%d9%82%d8%af%d9%85%d9%87\">\u5c0e\u5165<\/h2>\n<p>TypeScript\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306f\u3001\u958b\u767a\u8005\u306b\u3068\u3063\u3066JavaScript\u306b\u6bd4\u3079\u3066\u591a\u304f\u306e\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002TypeScript\u306f\u8ffd\u52a0\u6a5f\u80fd\u3092\u5099\u3048\u3066\u3044\u308b\u305f\u3081\u3001\u3088\u308a\u8907\u96d1\u306a\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u3001\u3088\u308a\u5c11\u306a\u3044\u30d0\u30b0\u3067\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002.<\/p>\n<p>TypeScript \u306b\u306f\u3001\u30a4\u30f3\u30e9\u30a4\u30f3 \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084\u30e9\u30a4\u30d6 \u30b3\u30fc\u30c9 \u30ec\u30d3\u30e5\u30fc\u3092\u63d0\u4f9b\u3059\u308b\u5927\u898f\u6a21\u306a\u958b\u767a\u8005\u30c4\u30fc\u30eb\u306e\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u3082\u3042\u308a\u3001\u4f5c\u696d\u4e2d\u306b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0 \u30a8\u30e9\u30fc\u3092\u898b\u3064\u3051\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002.<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001TypeScript \u3068\u306f\u4f55\u304b\u3001JavaScript \u3068\u3069\u306e\u3088\u3046\u306b\u95a2\u9023\u3057\u3066\u3044\u308b\u304b\u3092\u8aac\u660e\u3057\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304a\u3088\u3073\u30d0\u30c3\u30af\u30a8\u30f3\u30c9 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u7bc9\u3092\u958b\u59cb\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064\u30ea\u30bd\u30fc\u30b9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002.<\/p>\n<h2 id=\"typescript-%da%86%db%8c%d8%b3%d8%aa%d8%9f\">TypeScript \u3068\u306f\u4f55\u3067\u3059\u304b?<\/h2>\n<p>TypeScript \u306f\u3001JavaScript \u306b\u8ffd\u52a0\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002.<\/p>\n<p>JavaScript\u306f\u3001\u8907\u96d1\u306a\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3084\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u52d5\u304b\u3059\u305f\u3081\u306b\u8a2d\u8a08\u3055\u308c\u305f\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5143\u3005\u306f\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u30b7\u30f3\u30d7\u30eb\u306a\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b\u305f\u3081\u306b\u8a2d\u8a08\u3055\u308c\u307e\u3057\u305f\u3002\u4f8b\u3048\u3070\u3001\u30af\u30ea\u30c3\u30af\u53ef\u80fd\u306a\u30dc\u30bf\u30f3\u3092\u4f5c\u6210\u3057\u305f\u308a\u3001\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u306b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u305f\u308a\u3068\u3044\u3063\u305f\u6a5f\u80fd\u3067\u3059\u3002.<\/p>\n<p>\u3057\u304b\u3057\u3001JavaScript\u306f\u3001\u305d\u306e\u7528\u9014\u3092\u8d85\u3048\u305f\u53ef\u80fd\u6027\u3092\u898b\u51fa\u3057\u305f\u958b\u767a\u8005\u306e\u9593\u3067\u4eba\u6c17\u304c\u9ad8\u307e\u308a\u3001\u3044\u304f\u3064\u304b\u306e\u554f\u984c\u3092\u5f15\u304d\u8d77\u3053\u3057\u307e\u3057\u305f\u3002JavaScript\u306f\u3042\u307e\u308a\u306b\u3082\u5bdb\u5bb9\u3059\u304e\u308b\u8a00\u8a9e\u3067\u3057\u305f\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30df\u30b9\u3084\u3001\u5f8c\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u58ca\u3057\u3066\u3057\u307e\u3046\u3088\u3046\u306a\u6a5f\u80fd\u306e\u8aa4\u7528\u304c\u8d77\u3053\u308a\u3084\u3059\u304f\u3001\u307e\u305fJavaScript\u306b\u306f\u4ed6\u306e\u8a00\u8a9e\u306b\u3042\u308b\u591a\u304f\u306e\u6a5f\u80fd\u304c\u6b20\u3051\u3066\u3044\u307e\u3057\u305f\u3002TypeScript\u306f\u3001\u65e2\u5b58\u306eJavaScript\u74b0\u5883\u3068\u306e\u4e92\u63db\u6027\u3092\u4fdd\u3061\u306a\u304c\u3089\u3001\u3053\u308c\u3089\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u958b\u767a\u3055\u308c\u307e\u3057\u305f\u3002.<\/p>\n<p>TypeScript\u306f\u9759\u7684\u578b\u4ed8\u3051\u8a00\u8a9e\u3067\u3042\u308a\u3001JavaScript\u306e\u65e2\u5b58\u306e\u69cb\u6587\u3068\u6a5f\u80fd\u3092\u57fa\u76e4\u3068\u3057\u3066\u69cb\u7bc9\u3055\u308c\u305fJavaScript\u306e\u30b9\u30fc\u30d1\u30fc\u30bb\u30c3\u30c8\u3067\u3059\u3002\u3064\u307e\u308a\u3001TypeScript\u30b3\u30fc\u30c9\u5185\u3067JavaScript\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u304c\u3001TypeScript\u3067\u8a18\u8ff0\u3055\u308c\u305f\u30b3\u30fc\u30c9\u306fJavaScript\u3067\u306f\u5229\u7528\u3067\u304d\u306a\u3044\u6a5f\u80fd\u3068\u69cb\u6587\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001JavaScript\u30b3\u30fc\u30c9\u5185\u3067TypeScript\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002.<\/p>\n<p>TypeScript\u306f\u3001Web\u30d6\u30e9\u30a6\u30b6\u3084Node.js\u306a\u3069\u306e\u74b0\u5883\u3067\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001JavaScript\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff08\u4f4e\u6c34\u6e96\u8a00\u8a9e\u306b\u5909\u63db\u3055\u308c\u306a\u3044\u305f\u3081\u3001\u300c\u5909\u63db\u300d\u3068\u306f\u5225\u306e\u7528\u8a9e\u3067\u3059\uff09\u3002TypeScript\u30b3\u30fc\u30c9\u3092JavaScript\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u5834\u5408\u3001\u751f\u6210\u3055\u308c\u305fJavaScript\u30b3\u30fc\u30c9\u306f\u76f4\u63a5\u7de8\u96c6\u3067\u304d\u307e\u305b\u3093\u3002.<\/p>\n<p>TypeScript\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306f\u3001TypeScript\u3067\u8a18\u8ff0\u3057\u3001JavaScript\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002\u3053\u306e\u8ffd\u52a0\u30b9\u30c6\u30c3\u30d7\u306f\u4e0d\u5fc5\u8981\u306b\u8907\u96d1\u306b\u898b\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3053\u308c\u306b\u306f\u5341\u5206\u306a\u7406\u7531\u304c\u3042\u308a\u307e\u3059\u3002\u3082\u3057TypeScript\u304c\u5168\u304f\u65b0\u3057\u3044\u8a00\u8a9e\u3067\u3042\u308c\u3070\u3001\u691c\u8a0e\u3059\u308b\u4fa1\u5024\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u3002\u3057\u304b\u3057\u3001TypeScript\u306fJavaScript\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u65e2\u5b58\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u5b9f\u884c\u3067\u304d\u308b\u305f\u3081\u3001\u5e83\u304f\u53d7\u3051\u5165\u308c\u3089\u308c\u3066\u3044\u307e\u3059\u3002.<\/p>\n<p>TypeScript\u306e\u30d5\u30a1\u30a4\u30eb\u62e1\u5f35\u5b50\u306f.ts\u3067\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u57fa\u672c\u7684\u306aTypeScript\u30b3\u30fc\u30c9\u304c\u8a18\u8ff0\u3055\u308c\u305findex.ts\u3068\u3044\u3046\u30b5\u30f3\u30d7\u30eb\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-ts\" data-lang=\"TypeScript\"><code>let message: string = \"Hello, World!\";\r\nfunction greeting () {\r\nconsole.log(message);\r\n}\r\ngreeting();<\/code><\/pre>\n<\/div>\n<p>\u69cb\u6587\u306f JavaScript \u3068\u975e\u5e38\u306b\u4f3c\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u4f8b\u3067\u306f\u7570\u306a\u308b\u70b9\u304c\u898b\u3089\u308c\u307e\u3059\u3002\u30e1\u30c3\u30bb\u30fc\u30b8\u5909\u6570\u306e\u5f8c\u306b\u30b3\u30ed\u30f3 (:) \u304c\u7d9a\u304d\u3001\u305d\u306e\u578b (\u3053\u306e\u5834\u5408\u306f TypeScript) \u306b\u3088\u308a\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u6587\u5b57\u5217\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u7570\u306a\u308b\u578b\u306e\u5024\u3092\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u3053\u3068\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002.<\/p>\n<h2 id=\"%d9%88%db%8c%da%98%da%af%db%8c-%d9%87%d8%a7-%d9%88-%d9%85%d8%b2%d8%a7%db%8c%d8%a7%db%8c-%d8%a8%d8%b1%d8%aa%d8%b1-typescript-%d8%a8%d8%b1%d8%a7%db%8c-%d8%aa%d9%88%d8%b3%d8%b9%d9%87-%d8%af%d9%87%d9%86\">\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u306e TypeScript \u306e\u4e3b\u306a\u6a5f\u80fd\u3068\u30e1\u30ea\u30c3\u30c8<\/h2>\n<p>TypeScript\u3068\u3044\u3046\u540d\u524d\u306f\u3001JavaScript\u306b\u578b\u5b89\u5168\u6027\u3092\u5c0e\u5165\u3059\u308b\u3068\u3044\u3046\u4e3b\u8981\u306a\u7279\u5fb4\u306b\u7531\u6765\u3057\u3066\u3044\u307e\u3059\u3002\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001message\u5909\u6570\u306b\u6587\u5b57\u5217\u578b\u304c\u9069\u7528\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u6570\u5024\u3084\u305d\u306e\u4ed6\u306e\u578b\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u5236\u9650\u7684\u306b\u601d\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u5b9f\u969b\u306b\u306f\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u30e1\u30ea\u30c3\u30c8\u3068\u306a\u308a\u307e\u3059\u3002.<\/p>\n<h2 id=\"%d8%a7%db%8c%d9%85%d9%86%db%8c-%d8%aa%d8%a7%db%8c%d9%be-%d9%88-%d8%a8%d8%b1%d8%b1%d8%b3%db%8c-%d9%87%d8%a7%db%8c-%d8%b2%d9%85%d8%a7%d9%86-%da%a9%d8%a7%d9%85%d9%be%d8%a7%db%8c%d9%84%d8%8c-%d8%b1%d8%a7\">\u578b\u5b89\u5168\u6027\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306e\u30c1\u30a7\u30c3\u30af\u306b\u3088\u308a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30df\u30b9\u304c\u6e1b\u5c11<\/h2>\n<p>\u6b21\u306e\u3088\u3046\u306a\u30b7\u30ca\u30ea\u30aa\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u30022\u3064\u306eHTML\u30c6\u30ad\u30b9\u30c8\u5165\u529b\u304b\u3089\u5024\u3092\u53d6\u5f97\u3057\u3001\u305d\u308c\u3089\u3092\u52a0\u7b97\u3057\u305f\u3044\u3068\u3057\u307e\u3059\u3002JavaScript\u306f\u3053\u308c\u3089\u306e\u5024\u3092\u6587\u5b57\u5217\uff08\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3067\u3059\uff01\uff09\u3068\u3057\u3066\u8aad\u307f\u53d6\u308a\u307e\u3059\u3002\u305d\u306e\u7d50\u679c\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-ts\" data-lang=\"TypeScript\"><code>let a = \"2\"; \/\/ Assuming the value has been read from a text input\r\nlet b = \"5\";\r\nconsole.log(a + b); \/\/ Result is \"25\"<\/code><\/pre>\n<\/div>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f\u8b66\u544a\u3084\u30a8\u30e9\u30fc\u306a\u3057\u3067\u5b9f\u884c\u3055\u308c\u3001\u30c6\u30ad\u30b9\u30c8 \u30dc\u30c3\u30af\u30b9\u5185\u306e\u5024\u306f\u6587\u5b57\u5217\u3068\u3057\u3066\u6271\u308f\u308c\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u7b97\u8853\u6f14\u7b97\u3092\u4f7f\u7528\u3057\u3066\u52a0\u7b97\u3055\u308c\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u9023\u7d50\u3055\u308c\u30017 \u3067\u306f\u306a\u304f\u300c25\u300d\u3068\u3044\u3046\u671b\u307e\u3057\u304f\u306a\u3044\u7d50\u679c\u306b\u306a\u308a\u307e\u3059\u3002\u30d3\u30b8\u30cd\u30b9 \u30c4\u30fc\u30eb\u3092\u69cb\u7bc9\u3057\u3066\u3044\u3066\u3001\u91d1\u92ad\u7684\u306a\u4fa1\u5024\u3092\u52a0\u7b97\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u3053\u308c\u306f\u975e\u5e38\u306b\u60aa\u3044\u7d50\u679c\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u9867\u5ba2\u306b\u904e\u5270\u8acb\u6c42\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u578b\u5b89\u5168\u6027\u304c\u306a\u305c\u91cd\u8981\u306a\u306e\u304b\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u3067\u306f\u3001\u8ffd\u52a0\u3055\u308c\u305f\u5909\u6570\u306e\u578b\u306f\u3001\u578b\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-ts\" data-lang=\"TypeScript\"><code>let a: number = \"2\";\r\nlet b: number = \"2\";\r\nconsole.log(a + b);<\/code><\/pre>\n<\/div>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5b9f\u884c\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u52d5\u4f5c\u305b\u305a\u3001\u4ee3\u308f\u308a\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<p class=\"typography_paragraph01__q_o85\"><code>\u30bf\u30a4\u30d7\u300c\u6587\u5b57\u5217\u300d\u306f\u30bf\u30a4\u30d7\u300c\u6570\u5024\u300d\u306b\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002.<\/code><\/p>\n<p>\u3053\u308c\u306f\u3001\u8aa4\u3063\u3066\u6587\u5b57\u5217\u5024\u3092\u6570\u5024\u5909\u6570\u306b\u4ee3\u5165\u3057\u3088\u3046\u3068\u3057\u305f\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u4f8b\u3048\u3070\u6587\u5b57\u5217\u3092\u660e\u793a\u7684\u306b\u6570\u5024\u306b\u5909\u63db\u3059\u308b\u306a\u3069\u3057\u3066\u4fee\u6b63\u3067\u304d\u307e\u3059\u3002TypeScript\u306f\u3001\u30bf\u30a4\u30d7\u30df\u30b9\u304c\u3042\u308b\u3068\u30b3\u30fc\u30c9\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3068\u5b9f\u884c\u3055\u3048\u3082\u884c\u308f\u306a\u3044\u305f\u3081\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30c7\u30d0\u30c3\u30b0\u304c\u5bb9\u6613\u306b\u306a\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u3068\u3063\u3066\u4fe1\u983c\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002.<\/p>\n<p>TypeScript \u3067\u306f\u3001\u5909\u6570\u306e\u578b\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\uff08\u901a\u5e38\u306f\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff09\u3002\u578b\u63a8\u8ad6\u306b\u3088\u308a\u3001\u578b\u3092\u6307\u5b9a\u305b\u305a\u306b\u5909\u6570\u3092\u5ba3\u8a00\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001TypeScript \u306f\u5024\u3068\u4f7f\u7528\u65b9\u6cd5\u306b\u57fa\u3065\u3044\u3066\u578b\u3092\u63a8\u8ad6\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u578b\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044 JavaScript \u30b3\u30fc\u30c9\u3092 TypeScript \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u5834\u5408\u306b\u4fbf\u5229\u3067\u3059\u3002.<\/p>\n<p>\u3053\u308c\u3092\u81ea\u5206\u3067\u8a66\u3057\u3066\u307f\u305f\u3044\u5834\u5408\u306f\u3001TypeScript Playground \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u305b\u305a\u306b\u30d6\u30e9\u30a6\u30b6\u30fc\u3067\u76f4\u63a5 TypeScript \u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u3066\u30c6\u30b9\u30c8\u3067\u304d\u307e\u3059\u3002.<\/p>\n<h2 id=\"%d8%a7%d9%86%d9%88%d8%a7%d8%b9%d8%8c-%da%a9%d9%84%d8%a7%d8%b3%d9%87%d8%a7-%d9%88-%d8%b1%d8%a7%d8%a8%d8%b7%d9%87%d8%a7%db%8c-%d8%b3%d9%81%d8%a7%d8%b1%d8%b4%db%8c-%d8%af%d8%a7%d8%af\">\u30ab\u30b9\u30bf\u30e0\u578b\u3001\u30af\u30e9\u30b9\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306b\u3088\u308a\u3001\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u304c\u7dad\u6301\u3055\u308c\u307e\u3059\u3002<\/h2>\n<p>TypeScript \u306f\u3001\u72ec\u81ea\u306e\u30ab\u30b9\u30bf\u30e0\u578b\u306e\u30b5\u30dd\u30fc\u30c8\u3001\u30af\u30e9\u30b9\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3001\u7d99\u627f\u306e\u6539\u5584\u306b\u3088\u308a\u3001JavaScript \u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u62e1\u5f35\u3057\u307e\u3059\u3002.<\/p>\n<p>\u72ec\u81ea\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u30bf\u30a4\u30d7\u3068\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u69cb\u7bc9\u3059\u308b\u3068\u3001TypeScript \u3067\u30c7\u30fc\u30bf\u3092\u30e2\u30c7\u30eb\u5316\u3057\u3001\u30c7\u30fc\u30bf\u304c\u6b63\u3057\u304f\u51e6\u7406\u3055\u308c\u3001\u4fdd\u5b58\u3055\u308c\u308b\u3053\u3068\u3092\u4fdd\u8a3c\u3067\u304d\u307e\u3059\u3002.<\/p>\n<p>\u30af\u30e9\u30b9\u3068\u7d99\u627f\u306b\u3088\u308a\u3001\u30af\u30ea\u30fc\u30f3\u306a\u30b3\u30fc\u30c9\u3068 DRY \u539f\u5247\u304c\u5b9f\u73fe\u3055\u308c\u3001\u5f93\u6765\u306e JavaScript \u3088\u308a\u3082\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u304c\u6574\u7406\u3055\u308c\u305f\u72b6\u614b\u3092\u7dad\u6301\u3067\u304d\u307e\u3059\u3002.<\/p>\n<h2 id=\"enums-%d9%88-%d8%a7%d9%86%d9%88%d8%a7%d8%b9-%d8%aa%d8%ad%d8%aa-%d8%a7%d9%84%d9%84%d9%81%d8%b8%db%8c-%d8%af%d8%b1%da%a9-%da%a9%d8%af-%d8%b4%d9%85%d8%a7-%d8%b1%d8%a7-%d8%a2%d8%b3%d8%a7%d9%86-%d8%aa\">\u5217\u6319\u578b\u3068\u30ea\u30c6\u30e9\u30eb\u578b\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30b3\u30fc\u30c9\u304c\u7406\u89e3\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/h2>\n<p>\u5217\u6319\u578b\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u3042\u3044\u307e\u3044\u306b\u306a\u308b\u53ef\u80fd\u6027\u306e\u3042\u308b\u5024\u306b\u540d\u524d\u3092\u4ed8\u3051\u308b\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u304c\u8aad\u307f\u3084\u3059\u304f\u4fbf\u5229\u306b\u306a\u308a\u307e\u3059\u3002.<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30b9\u30da\u30fc\u30b9\u3092\u7bc0\u7d04\u3057\u3001\u691c\u7d22\u3092\u9ad8\u901f\u5316\u3059\u308b\u305f\u3081\u306b\u3001\u6ce8\u6587\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u6570\u5024\u3068\u3057\u3066\u4fdd\u5b58\u3059\u308b\u3068\u3057\u307e\u3059\u3002\u300c\u4fdd\u7559\u4e2d\u300d\u300c\u652f\u6255\u6e08\u307f\u300d\u300c\u767a\u9001\u6e08\u307f\u300d\u3068\u3044\u3063\u305f\u30b9\u30c6\u30fc\u30bf\u30b9\u3067\u306f\u306a\u304f\u3001\u305d\u308c\u305e\u308c0\u30011\u30012\u3068\u3044\u3063\u305f\u6570\u5024\u3068\u3057\u3066\u4fdd\u5b58\u3059\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002.<\/p>\n<p>\u526f\u4f5c\u7528\u3068\u3057\u3066\u3001\u6570\u5024\u81ea\u4f53\u304c\u3042\u307e\u308a\u610f\u5473\u3092\u306a\u3055\u306a\u3044\u305f\u3081\u3001\u30b3\u30fc\u30c9\u304c\u6df7\u4e71\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u3069\u306e\u6570\u5024\u304c\u3069\u306e\u6761\u4ef6\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u304b\u3092\u5fd8\u308c\u3066\u3057\u307e\u3044\u3001\u9593\u9055\u3063\u305f\u6570\u5024\u3092\u4f7f\u3063\u3066\u3057\u307e\u3046\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u5217\u6319\u578b\u306f\u4fbf\u5229\u306a\u89e3\u6c7a\u7b56\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-ts\" data-lang=\"TypeScript\"><code>enum OrderStatus {\r\npending,\r\npaid,\r\nshipped,\r\n}<\/code><\/pre>\n<\/div>\n<p>\u4e0a\u8a18\u306e\u30ea\u30b9\u30c8\u3067\u306f\u3001\u300cpending\u300d\u306e\u5024\u306f0\uff08\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u304a\u3051\u308b\u4ed6\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3068\u540c\u69d8\u306b\u3001\u5217\u6319\u578b\u306f\u9805\u76ee\u306e\u4f4d\u7f6e\u30920\u304b\u3089\u30ab\u30a6\u30f3\u30c8\u3057\u59cb\u3081\u307e\u3059\uff09\u3001\u300cpaid\u300d\u306e\u5024\u306f1\u3001\u300csent\u300d\u306e\u5024\u306f2\u3067\u3059\u3002\u5217\u6319\u578b\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u305d\u306e\u5024\u3092\u540d\u524d\u3067\u53c2\u7167\u3057\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5024\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<p class=\"typography_paragraph01__q_o85\"><code>console.log(\u6ce8\u6587\u30b9\u30c6\u30fc\u30bf\u30b9.\u652f\u6255\u3044\u6e08\u307f);<span>\u00a0<\/span><\/code><code><i>\/\/ 1\u3092\u51fa\u529b\u3057\u307e\u3059<\/i><\/code><\/p>\n<p>\u30ea\u30c6\u30e9\u30eb\u578b\u3068\u5171\u7528\u4f53\u306f\u3001\u5909\u6570\u306b\u7279\u5b9a\u306e\u5024\u3092\u4ee3\u5165\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u300ccat\u300d\u307e\u305f\u306f\u300cdog\u300d\u3068\u3044\u3046\u5024\u306e\u307f\u3092\u53d7\u3051\u53d6\u308b\u95a2\u6570\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-ts\" data-lang=\"TypeScript\"><code>function myFunction(pet: \"cat\" | \"dog\") {\r\nconsole.log(pet);\r\n}<\/code><\/pre>\n<\/div>\n<p>\u30b3\u30fc\u30c9\u304c\u3053\u306e\u95a2\u6570\u306b\u300ccat\u300d\u307e\u305f\u306f\u300cdog\u300d\u4ee5\u5916\u306e\u5024\u3092\u6e21\u3059\u3068\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u958b\u767a\u4e2d\u306b\u3088\u308a\u591a\u304f\u306e\u554f\u984c\u3092\u767a\u898b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u7279\u5b9a\u306e\u5165\u529b\u3092\u671f\u5f85\u3059\u308b\u95a2\u6570\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u3001\u4e88\u671f\u3057\u306a\u3044\u5024\u304c\u6e21\u3055\u308c\u308b\u30d0\u30b0\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u306a\u304f\u306a\u308b\u3053\u3068\u3092\u8a8d\u8b58\u3067\u304d\u307e\u3059\u3002.<\/p>\n<h2 id=\"%d9%86%d8%ad%d9%88%d9%87-%d9%86%d8%b5%d8%a8-typescript-%d9%88-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-%da%a9%d8%a7%d9%85%d9%be%d8%a7%db%8c%d9%84%d8%b1-typescript\">TypeScript \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066 TypeScript \u30b3\u30f3\u30d1\u30a4\u30e9\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>TypeScript \u30b3\u30fc\u30c9\u3092 Web \u30d6\u30e9\u30a6\u30b6\u30fc\u3084 Node.js \u3067\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001JavaScript \u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u306f\u3001TypeScript \u30b3\u30f3\u30d1\u30a4\u30e9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002.<\/p>\n<p>\u6b21\u306e npm \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001TypeScript \u3092\u30b0\u30ed\u30fc\u30d0\u30eb\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002.<\/p>\n<p class=\"typography_paragraph01__q_o85\"><code>npm \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb -g \u30bf\u30a4\u30d7\u30b9\u30af\u30ea\u30d7\u30c8<\/code><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001npx \u3092\u4f7f\u7528\u3057\u3066\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u3069\u3053\u304b\u3089\u3067\u3082 tsc TypeScript \u30b3\u30f3\u30d1\u30a4\u30eb \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p class=\"typography_paragraph01__q_o85\"><code>tsc \u30a4\u30f3\u30c7\u30c3\u30af\u30b9.ts<\/code><\/p>\n<p>\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001TypeScript \u30d5\u30a1\u30a4\u30eb index.ts \u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3001index.js \u3068\u3044\u3046\u540d\u524d\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f JavaScript \u30d5\u30a1\u30a4\u30eb\u3092\u51fa\u529b\u3057\u307e\u3059\u3002.<\/p>\n<h2 id=\"%d9%86%d8%ad%d9%88%d9%87-%d9%86%d9%88%d8%b4%d8%aa%d9%86-%d8%a8%d8%b1%d9%86%d8%a7%d9%85%d9%87-%d8%af%d8%b1-typescript\">TypeScript\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f\u65b9\u6cd5<\/h2>\n<p>TypeScript\u306f\u3001\u8907\u96d1\u306a\u8907\u6570\u30da\u30fc\u30b8\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u69cb\u7bc9\u306b\u6700\u9069\u3067\u3059\u3002\u591a\u304f\u306e\u958b\u767a\u8005\u306f\u3001\u500b\u3005\u306e\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u306b\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b\u3068\u3044\u3063\u305f\u57fa\u672c\u7684\u306a\u7528\u9014\u306b\u306fTypeScript\u3092\u4f7f\u7528\u3057\u307e\u305b\u3093\u304c\u3001React\u3084Angular\u3092\u4f7f\u3063\u305f\u5927\u898f\u6a21\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u7bc9\u306b\u306fTypeScript\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002.<\/p>\n<p>\u591a\u304f\u306e\u958b\u767a\u8005\u306f\u3001\u30b3\u30fc\u30c9\u88dc\u5b8c\u3001\u30a4\u30f3\u30e9\u30a4\u30f3 \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3001\u30a8\u30e9\u30fc\u306e\u5f37\u8abf\u8868\u793a\u3092\u6d3b\u7528\u3057\u3066\u958b\u767a\u304a\u3088\u3073\u30c7\u30d0\u30c3\u30b0\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u52b9\u7387\u5316\u3067\u304d\u308b\u3088\u3046\u306b\u3001TypeScript \u7d71\u5408\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u30b3\u30fc\u30c9 \u30a8\u30c7\u30a3\u30bf\u30fc\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002.<\/p>\n<h2 id=\"%d8%a2%db%8c%d8%a7-%d9%85%db%8c-%d8%aa%d9%88%d8%a7%d9%86%d9%85-%d8%a7%d8%b2-%da%a9%d8%af-%d8%ac%d8%a7%d9%88%d8%a7-%d8%a7%d8%b3%da%a9%d8%b1%db%8c%d9%be%d8%aa-%d9%85%d9%88%d8%ac%d9%88%d8%af-%d8%ae%d9%88\">\u65e2\u5b58\u306e JavaScript \u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u304b?<\/h2>\n<p>\u306f\u3044\uff01TypeScript\u306fJavaScript\u3068\u4e92\u63db\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u53e4\u3044JavaScript\u30b3\u30fc\u30c9\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066TypeScript\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u5f15\u304d\u7d9a\u304d\u4f7f\u7528\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u65b0\u3057\u3044TypeScript\u6a5f\u80fd\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002.<\/p>\n<h2 id=\"%d9%be%d8%a7%db%8c%d8%a7%d9%86-%d8%b3%d8%a7%d8%ae%d8%aa-%d8%a8%d8%a7-typescript-%d8%a8%d8%b1%d8%a7%db%8c-%d9%85%d8%b1%d9%88%d8%b1%da%af%d8%b1\">\u30d6\u30e9\u30a6\u30b6\u7528\u306eTypeScript\u3067\u30d3\u30eb\u30c9\u3092\u5b8c\u4e86\u3059\u308b<\/h2>\n<p>React\u306f\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u4f5c\u6210\u3092\u652f\u63f4\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002\u518d\u5229\u7528\u53ef\u80fd\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u57fa\u76e4\u3092\u63d0\u4f9b\u3057\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3092\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3057\u3066\u30b7\u30f3\u30d7\u30eb\u306b\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u30da\u30fc\u30b8\u4e0a\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u8868\u793a\u3001\u975e\u8868\u793a\u3001\u79fb\u52d5\u3001\u5916\u89b3\u306e\u5909\u66f4\u306a\u3069\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u64cd\u4f5c\u3067\u304d\u308b\u52d5\u7684\u306a\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002React\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306fTypeScript\u3067\u8a18\u8ff0\u3067\u304d\u3001\u3053\u306e\u7d44\u307f\u5408\u308f\u305b\u306f\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u4eba\u6c17\u304c\u3042\u308a\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u30c1\u30a7\u30fc\u30f3\u3067\u3059\u3002.<\/p>\n<p>Angular\u306f\u3001TypeScript\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u69cb\u7bc9\u3059\u308b\u5305\u62ec\u7684\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002React\u3092\u51cc\u99d5\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u69cb\u7bc9\u30c4\u30fc\u30eb\u306b\u52a0\u3048\u3066\u3001\u5b8c\u5168\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u305f\u3081\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3082\u63d0\u4f9b\u3057\u307e\u3059\u3002Angular\u306e\u6982\u5ff5\u7684\u306a\u30a2\u30d7\u30ed\u30fc\u30c1\u306b\u3088\u308a\u3001\u958b\u767a\u8005\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30b3\u30f3\u30bb\u30d7\u30c8\u304cAngular\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u9069\u5408\u3057\u3066\u3044\u308c\u3070\u3001\u3088\u308a\u8fc5\u901f\u306b\u958b\u767a\u3092\u9032\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002.<\/p>\n<p>React\u3068Angular\u306f\u3069\u3061\u3089\u3082\u3001Ionic\u3068Electron\u5411\u3051\u306eTypeScript\u30a2\u30d7\u30ea\u306e\u69cb\u7bc9\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002Ionic\u3067\u306fTypeScript\u3092\u4f7f\u7528\u3057\u3066iOS\u304a\u3088\u3073Android\u5411\u3051\u306e\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3067\u304d\u3001Electron\u3067\u306fWeb\u30a2\u30d7\u30ea\u3092Windows\u3001Linux\u3001MacOS\u5411\u3051\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u306b\u57cb\u3081\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002.<\/p>\n<h2 id=\"%d8%a7%d8%b3%d8%aa%d9%82%d8%b1%d8%a7%d8%b1-backend%d9%87%d8%a7%db%8c-typescript-%d8%af%d8%b1-%d8%b3%d8%b1%d9%88%d8%b1\">TypeScript\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u30c7\u30d7\u30ed\u30a4\u3059\u308b<\/h2>\n<p>TypeScript\u306f\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u7bc9\u306b\u9650\u5b9a\u3055\u308c\u307e\u305b\u3093\u3002Node.js\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30b5\u30fc\u30d3\u30b9\u3084\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u306b\u3082\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002.<\/p>\n<p>\u307e\u305f\u3001Fastify Web \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067 TypeScript \u3092\u4f7f\u7528\u3057\u305f\u308a\u3001Nest \u306a\u3069\u306e TypeScript \u56fa\u6709\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u3057\u3066\u578b\u30bb\u30fc\u30d5\u306a API \u3092\u4f5c\u6210\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002.<\/p>\n<h2 id=\"typescript-%d9%88-graphql\">TypeScript\u3068GraphQL<\/h2>\n<p><a href=\"https:\/\/cdn.itpiran.net\/2025\/01\/15012317\/1-2.jpg\"><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"1200\"  height=\"675\"  class=\"aligncenter wp-image-16644 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 1200px) 100vw, 1200px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2025\/01\/15012317\/1-2.jpg\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2025\/01\/15012317\/1-2.jpg 1200w, https:\/\/cdn.itpiran.net\/2025\/01\/15012317\/1-2-300x169.jpg 300w, https:\/\/cdn.itpiran.net\/2025\/01\/15012317\/1-2-1024x576.jpg 1024w, https:\/\/cdn.itpiran.net\/2025\/01\/15012317\/1-2-768x432.jpg 768w, https:\/\/cdn.itpiran.net\/2025\/01\/15012317\/1-2-110x62.jpg 110w, https:\/\/cdn.itpiran.net\/2025\/01\/15012317\/1-2-200x113.jpg 200w, https:\/\/cdn.itpiran.net\/2025\/01\/15012317\/1-2-380x214.jpg 380w, https:\/\/cdn.itpiran.net\/2025\/01\/15012317\/1-2-255x143.jpg 255w, https:\/\/cdn.itpiran.net\/2025\/01\/15012317\/1-2-550x309.jpg 550w, https:\/\/cdn.itpiran.net\/2025\/01\/15012317\/1-2-800x450.jpg 800w, https:\/\/cdn.itpiran.net\/2025\/01\/15012317\/1-2-1160x653.jpg 1160w\" ><\/a><\/p>\n<p>GraphQL\u306f\u3001API\u304b\u3089\u30c7\u30fc\u30bf\u3092\u691c\u7d22\u30fb\u53d6\u5f97\u3059\u308b\u305f\u3081\u306e\u30af\u30a8\u30ea\u8a00\u8a9e\u3067\u3059\u3002TypeScript\u3068\u540c\u69d8\u306b\u578b\u4ed8\u3051\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u69cb\u9020\u5316\u3055\u308c\u305f\u4e00\u8cab\u6027\u306e\u3042\u308b\u30c7\u30fc\u30bf\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002GraphQL\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3057\u3066\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306bGraphQL\u3092\u5b9f\u88c5\u3057\u3001\u305d\u306e\u578b\u3092TypeScript\u30b3\u30fc\u30c9\u306b\u9069\u5408\u3055\u305b\u308b\u3053\u3068\u3067\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30b5\u30fc\u30d3\u30b9\u3067\u30e2\u30c7\u30eb\u5316\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u304c\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306b\u6b63\u3057\u304f\u53cd\u6620\u3055\u308c\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3067\u53ce\u96c6\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u304c\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u6642\u306b\u6b63\u3057\u304f\u4fdd\u5b58\u3055\u308c\u308b\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u308b\u305f\u3081\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u54c1\u8cea\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002.<\/p>\n<p>Contentful \u3092\u4f7f\u7528\u3057\u3066\u69cb\u6210\u53ef\u80fd\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u7ba1\u7406\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306e\u30e1\u30f3\u30d0\u30fc\u304c\u3001\u30b3\u30f3\u30c6\u30f3\u30c4 \u30bf\u30a4\u30d7\u306e\u578b\u5ba3\u8a00\u3092\u751f\u6210\u3057\u3001TypeScript \u3092\u30b3\u30f3\u30c6\u30f3\u30c4 \u30e2\u30c7\u30eb\u3068\u540c\u671f\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064\u30a2\u30d7\u30ea\u3068\u30c4\u30fc\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002.<\/p>","protected":false},"excerpt":{"rendered":"\u306f\u3058\u3081\u306b TypeScript\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306f\u3001\u958b\u767a\u8005\u306b\u3068\u3063\u3066JavaScript\u306b\u6bd4\u3079\u3066\u591a\u304f\u306e\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u8ffd\u52a0\u6a5f\u80fd\u2026","protected":false},"author":1,"featured_media":16646,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"TypeScript \u0686\u06cc\u0633\u062a","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_canonical":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_opengraph-image":"","_yoast_wpseo_twitter-description":"","_yoast_wpseo_twitter-image":"","_yoast_wpseo_focuskeywords":"[]","_yoast_wpseo_primary_category":"193","footnotes":""},"categories":[193,363],"tags":[416],"class_list":{"0":"post-16641","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-tutorials","8":"category-programming","9":"tag-typescript"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>TypeScript \u0686\u06cc\u0633\u062a \u0648 \u0686\u0631\u0627 \u0628\u0627\u06cc\u062f \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u061f - \u0628\u0644\u0627\u06af ITPiran<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.itpiran.net\/blog\/ja\/tutorials\/what-is-typescript-and-why-should-you-use-it\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"TypeScript \u0686\u06cc\u0633\u062a \u0648 \u0686\u0631\u0627 \u0628\u0627\u06cc\u062f \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u061f - \u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"og:description\" content=\"\u0645\u0642\u062f\u0645\u0647 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc TypeScript \u0645\u0632\u0627\u06cc\u0627\u06cc \u0632\u06cc\u0627\u062f\u06cc \u0646\u0633\u0628\u062a \u0628\u0647 \u062c\u0627\u0648\u0627 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u062f\u0627\u0631\u062f. \u0642\u0627\u0628\u0644\u06cc\u062a \u0647\u0627\u06cc \u0627\u0636\u0627\u0641\u06cc&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.itpiran.net\/blog\/ja\/tutorials\/what-is-typescript-and-why-should-you-use-it\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-14T22:02:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.itpiran.net\/2025\/01\/15013050\/TypeScriptWallpaper.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1793\" \/>\n\t<meta property=\"og:image:height\" content=\"1110\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"12\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-typescript-and-why-should-you-use-it\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-typescript-and-why-should-you-use-it\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\"},\"headline\":\"TypeScript \u0686\u06cc\u0633\u062a \u0648 \u0686\u0631\u0627 \u0628\u0627\u06cc\u062f \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u061f\",\"datePublished\":\"2025-01-14T22:02:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-typescript-and-why-should-you-use-it\\\/\"},\"wordCount\":116,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-typescript-and-why-should-you-use-it\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2025\\\/01\\\/15013050\\\/TypeScriptWallpaper.jpg\",\"keywords\":[\"typeScript\"],\"articleSection\":[\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-typescript-and-why-should-you-use-it\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-typescript-and-why-should-you-use-it\\\/\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-typescript-and-why-should-you-use-it\\\/\",\"name\":\"TypeScript \u0686\u06cc\u0633\u062a \u0648 \u0686\u0631\u0627 \u0628\u0627\u06cc\u062f \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u061f - \u0628\u0644\u0627\u06af ITPiran\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-typescript-and-why-should-you-use-it\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-typescript-and-why-should-you-use-it\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2025\\\/01\\\/15013050\\\/TypeScriptWallpaper.jpg\",\"datePublished\":\"2025-01-14T22:02:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-typescript-and-why-should-you-use-it\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-typescript-and-why-should-you-use-it\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-typescript-and-why-should-you-use-it\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2025\\\/01\\\/15013050\\\/TypeScriptWallpaper.jpg\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2025\\\/01\\\/15013050\\\/TypeScriptWallpaper.jpg\",\"width\":1793,\"height\":1110},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-typescript-and-why-should-you-use-it\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/category\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"TypeScript \u0686\u06cc\u0633\u062a \u0648 \u0686\u0631\u0627 \u0628\u0627\u06cc\u062f \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u061f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"name\":\"\u0628\u0644\u0627\u06af ITPiran\",\"description\":\"\u0627\u062e\u0628\u0627\u0631 \u0648 \u0645\u0642\u0627\u0644\u0627\u062a \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\",\"name\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"alternateName\":\"ITPIran Blog\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"width\":512,\"height\":512,\"caption\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\",\"name\":\"admin\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/ja\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"TypeScript\u3068\u306f\u4f55\u304b\uff1f\u306a\u305c\u4f7f\u3046\u3079\u304d\u306a\u306e\u304b\uff1f - ITPiran\u30d6\u30ed\u30b0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.itpiran.net\/blog\/ja\/tutorials\/what-is-typescript-and-why-should-you-use-it\/","og_locale":"ja_JP","og_type":"article","og_title":"TypeScript \u0686\u06cc\u0633\u062a \u0648 \u0686\u0631\u0627 \u0628\u0627\u06cc\u062f \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u061f - \u0628\u0644\u0627\u06af ITPiran","og_description":"\u0645\u0642\u062f\u0645\u0647 \u0632\u0628\u0627\u0646 \u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc TypeScript \u0645\u0632\u0627\u06cc\u0627\u06cc \u0632\u06cc\u0627\u062f\u06cc \u0646\u0633\u0628\u062a \u0628\u0647 \u062c\u0627\u0648\u0627 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u062f\u0627\u0631\u062f. \u0642\u0627\u0628\u0644\u06cc\u062a \u0647\u0627\u06cc \u0627\u0636\u0627\u0641\u06cc&hellip;","og_url":"https:\/\/www.itpiran.net\/blog\/ja\/tutorials\/what-is-typescript-and-why-should-you-use-it\/","og_site_name":"\u0628\u0644\u0627\u06af ITPiran","article_published_time":"2025-01-14T22:02:18+00:00","og_image":[{"width":1793,"height":1110,"url":"https:\/\/cdn.itpiran.net\/2025\/01\/15013050\/TypeScriptWallpaper.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"admin","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"12\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-typescript-and-why-should-you-use-it\/#article","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-typescript-and-why-should-you-use-it\/"},"author":{"name":"admin","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81"},"headline":"TypeScript \u0686\u06cc\u0633\u062a \u0648 \u0686\u0631\u0627 \u0628\u0627\u06cc\u062f \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u061f","datePublished":"2025-01-14T22:02:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-typescript-and-why-should-you-use-it\/"},"wordCount":116,"commentCount":0,"publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-typescript-and-why-should-you-use-it\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2025\/01\/15013050\/TypeScriptWallpaper.jpg","keywords":["typeScript"],"articleSection":["\u0622\u0645\u0648\u0632\u0634\u06cc","\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-typescript-and-why-should-you-use-it\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-typescript-and-why-should-you-use-it\/","url":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-typescript-and-why-should-you-use-it\/","name":"TypeScript\u3068\u306f\u4f55\u304b\uff1f\u306a\u305c\u4f7f\u3046\u3079\u304d\u306a\u306e\u304b\uff1f - ITPiran\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-typescript-and-why-should-you-use-it\/#primaryimage"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-typescript-and-why-should-you-use-it\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2025\/01\/15013050\/TypeScriptWallpaper.jpg","datePublished":"2025-01-14T22:02:18+00:00","breadcrumb":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-typescript-and-why-should-you-use-it\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-typescript-and-why-should-you-use-it\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-typescript-and-why-should-you-use-it\/#primaryimage","url":"https:\/\/cdn.itpiran.net\/2025\/01\/15013050\/TypeScriptWallpaper.jpg","contentUrl":"https:\/\/cdn.itpiran.net\/2025\/01\/15013050\/TypeScriptWallpaper.jpg","width":1793,"height":1110},{"@type":"BreadcrumbList","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-typescript-and-why-should-you-use-it\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.itpiran.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u0622\u0645\u0648\u0632\u0634\u06cc","item":"https:\/\/www.itpiran.net\/blog\/category\/tutorials\/"},{"@type":"ListItem","position":3,"name":"TypeScript \u0686\u06cc\u0633\u062a \u0648 \u0686\u0631\u0627 \u0628\u0627\u06cc\u062f \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u061f"}]},{"@type":"WebSite","@id":"https:\/\/www.itpiran.net\/blog\/#website","url":"https:\/\/www.itpiran.net\/blog\/","name":"ITPiran\u30d6\u30ed\u30b0","description":"\u30a4\u30e9\u30f3\u306e\u6301\u7d9a\u53ef\u80fd\u306a\u8cbf\u6613\u306b\u95a2\u3059\u308b\u30cb\u30e5\u30fc\u30b9\u3068\u8a18\u4e8b","publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.itpiran.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.itpiran.net\/blog\/#organization","name":"\u6301\u7d9a\u53ef\u80fd\u306a\u30a4\u30e9\u30f3\u30d3\u30b8\u30cd\u30b9\u30d6\u30ed\u30b0","alternateName":"ITPIran Blog","url":"https:\/\/www.itpiran.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","contentUrl":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","width":512,"height":512,"caption":"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81","name":"\u7ba1\u7406\u8005","url":"https:\/\/www.itpiran.net\/blog\/ja\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/posts\/16641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/comments?post=16641"}],"version-history":[{"count":1,"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/posts\/16641\/revisions"}],"predecessor-version":[{"id":16645,"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/posts\/16641\/revisions\/16645"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/media\/16646"}],"wp:attachment":[{"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/media?parent=16641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/categories?post=16641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/ja\/wp-json\/wp\/v2\/tags?post=16641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}