I'm currently developing a web based editor (for editing typescript files) using Monaco editor for the purpose and I'm facing a problem - How to load all typescript definitions for the included typescript files in order to have intellisense for them?
For example:
If my primary file is index.ts
import {test} from './test.ts';
console.log('index');
and the `test.ts
import {test2} from './test2.ts';
...
Is there any way to tell Monaco to include automatically the typescript definitions for 'test.ts' and 'test2.ts' files? Or I should follow the import statements somehow using typescript compiler API and import these definitions in the Monaco manually?