Closed sosnovsky closed 8 months ago
Thank you for the thorough PR @sosnovsky.
The lack of CJS here is intentional. Mostly to avoid polluting the default export, which is shared with ESM. Also because usage ought to be rare enough that you can work around it in CJS using dynamic import.
Got it, thanks for explanation, will try to use it through dynamic import.
In 6.1.1 release it's not possible to use
registerCompletionHandler
in CommonJS project. This PR addsregisterCompletionHandler
tomain.d.cts
, so it can be imported in CommonJSFixes https://github.com/avajs/ava/issues/3306.