Is there a way for me to incorporate monaco.d.ts
in order to utilize intellisense with the monaco-editor
package?
I've recently integrated this package into a JavaScript project and everything is functioning properly. However, as I transition to TypeScript, VSCode continually indicates that the classes/functions provided by this extension are not found. For instance, CompletionItems
.
After researching on SO, I discovered that you can include monaco.d.ts
in the tsconfig.json
file as follows:
{
...
"include": [
"src",
"./node_modules/monaco-editor/monaco.d.ts"
],
...
"files": ["./node_modules/monaco-editor/monaco.d.ts"]
...
}
However, this method hasn't proven effective either. (I even tried restarting VS Code)
Therefore, my main query is: How can I effectively include any d.ts
file so that intellisense recognizes the types defined within it? Or more specifically: How can I achieve this with the monaco.d.ts
file?