ããã¨ãã åã ã®é¢æ°ãå¤æ°ã«æ£ããåãã¤ãã話ã¯ãã¾ãããTypeScript Handbookã®Declarationã®ç« ãªã©ãèªããã¨ããããããã¾ãã ãããã«ãæ¬ç¨¿ã§ã¯é¢æ°ãå¤æ°ã®å宣è¨ãã©ãã«ã©ãç½®ãã¹ããã®æéãä¸ãã¾ãã ã¢ã¸ã¥ã¼ã«ã¨ã¹ã¯ãªãã declareãæ£ãã使ãã«ã¯ã¾ãã¢ã¸ã¥ã¼ã«ã¨ã¹ã¯ãªããã®åºå¥ãç解ããæèãããã¨ã大åã§ãã ãã©ã¦ã¶ãNode.jsã¯å¤é¨ããã®æå®ã§ã¢ã¸ã¥ã¼ã«ã¨ã¹ã¯ãªãããåºå¥ãã¾ãããTypeScriptã§ã¯ååã¨ãã¦ãã¡ã¤ã«ã®å 容ã§ã¢ã¸ã¥ã¼ã«ã¨ã¹ã¯ãªãããåºå¥ãã¾ãã import 宣è¨ã¾ã㯠export 宣è¨ã1ã¤ä»¥ä¸ããã°ã¢ã¸ã¥ã¼ã«ã CommonJSã¢ã¸ã¥ã¼ã«ã®å ´åã¯TypeScriptå°ç¨æ§æã§ãã import = 宣è¨ã export = 宣è¨ã使ãã ãã以å¤ã®å ´åã¯ã¹ã¯ãªããã ãã ããJavaScriptãã¡ã¤ã« (
{{#tags}}- {{label}}
{{/tags}}