«typescript2.1» 태그된 질문

4
사용자 정의 TypeScript 정의 파일을 작성할 때 "Module 'name'이 (가) 다음에 유형이 지정되지 않은 모듈로 확인됩니다."오류가 발생 함
@type/{name}설치된 NodeJS 패키지 중 하나에 대한 TypeScript 정의 를 찾을 수 없으므로 d.ts파일 을 작성하고 파일을 {project root}\typings폴더에 넣으려고 합니다. 이것은 내가하는 방법입니다. // My source code: index.ts import Helper from 'node-helper-lib'; // My definition: \typings\node-helper-lib.d.ts declare....(something else) declare module 'node-helper-lib' { class Helper { ... } export = Helper; …
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.