esModuleInteropãã©ã°ãæå¹ã«ããã¨ãã³ã³ãã¤ã«æã«ãã«ãã¼ã¡ã½ãããçæãããããã«ãªããã¢ã¸ã¥ã¼ã«ã·ã¹ãã ã®ç¸äºéç¨æ§ãé«ã¾ãã ããã«ãããdefaultãã¨ã¯ã¹ãã¼ããã¦ããªã CommonJS å½¢å¼ã®ã¢ã¸ã¥ã¼ã«ããES Modules ã§ããã©ã«ãã¤ã³ãã¼ããããã¨ãã£ããã¨ãå¯è½ã«ãªãã ãã®è¨äºã®å 容ã¯ãTypeScript ã®v3.9.6㨠Node.js ã®v12.17.0ã§åä½ç¢ºèªãã¦ããã ES Modules 㨠CommonJS ã®äºææ§ ã¾ããæ¤è¨¼ç¨ã«ä»¥ä¸ã®ãã¡ã¤ã«ãä½æããã // src/myModule.js const add = (a, b) => a + b; module.exports = { value: 123, add, }; // src/index.ts import {value, add} from './myModu
{{#tags}}- {{label}}
{{/tags}}