Closed sosnovsky closed 7 months ago
Please provide details about:
What you're trying to do I tried to use registerCompletionHandler in CommonJS project (https://github.com/FlowCrypt/flowcrypt-browser)
registerCompletionHandler
What happened I wasn't able to import registerCompletionHandler, as it's not added to main.d.cts
main.d.cts
What you expected to happen I expected registerCompletionHandler to be available for import
This is intentional. Mostly to avoid polluting the default export in CJS, which is shared with ESM. Also because usage ought to be rare enough that you can work around it in CJS using dynamic import.
Please provide details about:
What you're trying to do I tried to use
registerCompletionHandler
in CommonJS project (https://github.com/FlowCrypt/flowcrypt-browser)What happened I wasn't able to import
registerCompletionHandler
, as it's not added tomain.d.cts
What you expected to happen I expected
registerCompletionHandler
to be available for import