timkendrick / monaco-editor

CommonJS/Webpack compatible Monaco editor
MIT License
60 stars 7 forks source link

Add `monaco.d.ts` file into package for typescript #3

Closed panoti closed 6 years ago

panoti commented 6 years ago

Can you add monaco.d.ts file into your package for intellisense?

brownbl1 commented 6 years ago

Agreed, this would be very helpful for exploring the API.

timkendrick commented 6 years ago

Hi there – sorry for the delayed response, I didn't see this issue until today for some reason. I've just published v0.0.8 which contains typings for both the standalone and external versions.

The typings seem to work well in VSCode using the import * as monaco from '@timkendrick/monaco-editor'; syntax (in both JS and TS), but feel free to reopen the issue if you come across problems with the typings.

brownbl1 commented 6 years ago

Yep, looks great!