1
다음과 같은 구조의 프로젝트가 있습니다.VS 코드, 타이핑 - 아니요 IntelliSense
.
├── app
│ ├── app.css
│ ├── app.js
│ └── home
│ ├── home.css
│ ├── home.html
│ └── home.js
├── jsconfig.json
├── package.json
├── tsconfig.json
├── typings
│ ├── globals
│ │ ├── jquery
│ │ │ ├── index.d.ts
│ │ │ └── typings.json
│ │ └── office-js
│ │ ├── index.d.ts
│ │ └── typings.json
│ └── index.d.ts
└── typings.json
여기서 알 수 있듯이 프로젝트에 대한 입력을 초기화하고 설치했습니다.
그러나 VS 코드는 IntelliSense의 * .d.ts 파일을 인식하지 못합니다.
그래서 나는이 주제에 관련된 모든 블로그와 질문을 읽고
tsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "commonjs"
},
"files": [
"typings/index.d.ts"
]
}
jsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "commonjs"
},
"exclude": [
"node_modules"
]
}
등 제대로 코드 완성, 빠른 정보를 얻을하지 않습니다 , 그러나 작동 해결책을 우연히 만나지 않았다.
솔루션을 찾았 으면 솔루션을 질문에 대한 답변으로 게시하고 승인 된 것으로 표시해야합니다 (http://meta.stackexchange.com/a/17847/308046). – alexanderbird