Skip to content

Export CustomTSWebWorkerFactory type #3240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Andarist
Copy link

It would be great if this type could get exported, it would help people to have good type guarantees when authoring custom web worker factories.

⚠️ This doesn't currently work because in the generated .d.ts this export is not resolved/inlined and this is left behind:

export { CustomTSWebWorkerFactory } from './tsWorker';

which doesn't work in this context because ./tsWorker doesn't exist anymore in this context and because exports like this are not permitted within namespaces.

I'm not sure what I should tweak here to make it work. Should I tweak something in the build script? Or should I juggle the code around and move required types from ./tsWorker to monaco.contribution.ts and import them from monaco.contribution.ts to ./tsWorker?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants