atularen / ngx-monaco-editor

Monaco Editor component for Angular 2 and Above
https://www.npmjs.com/package/ngx-monaco-editor
MIT License
428 stars 155 forks source link

ngx-monaco-editor inputs and outputs not typed #68

Open cleavera opened 6 years ago

cleavera commented 6 years ago

The inputs and outputs for the ngx-monaco-editor component are not typed

@Input('options')
set options(options: any) {
...
@Output() onInit = new EventEmitter<any>();

The output appears to be an monaco.editor.IStandaloneCodeEditor and the input looks to be some kind of custom interface.

Would it be possible to type these and export the types so that I can add some type safety to my app (rather than using any)

ekabelly commented 4 years ago

Same problem for me. Had to use skipLibCheck on tsconfig.json to make it work.

abierbaum commented 3 years ago

Types would be very helpful to understand what can be used here.