You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your tests are in a TS project and skipLibCheck is false, TSC complains about the combination of exports used in installLogsCollector.d.ts and installLogsPrinter.d.ts.
node_modules/cypress-terminal-report/src/installLogsCollector.d.ts:70:1 - error TS2309: An export assignment cannot be used in a module with other exported elements.
70 export = installLogsCollector;
This is because you can't combine individual exports (eg. export type Severity = '' | 'error' | 'warning';) with export assignment (eg. export = installLogsCollector;).
I believe the fix is simply to change the export assignment to a default export (eg. export default installLogsCollector;). When I make this change locally, the default export is typed as expected and I can still import the declared types individually. I'll raise a PR with the fix for both files.
The text was updated successfully, but these errors were encountered:
If your tests are in a TS project and
skipLibCheck
is false, TSC complains about the combination of exports used ininstallLogsCollector.d.ts
andinstallLogsPrinter.d.ts
.This is because you can't combine individual exports (eg.
export type Severity = '' | 'error' | 'warning';
) with export assignment (eg.export = installLogsCollector;
).I believe the fix is simply to change the export assignment to a default export (eg.
export default installLogsCollector;
). When I make this change locally, the default export is typed as expected and I can still import the declared types individually. I'll raise a PR with the fix for both files.The text was updated successfully, but these errors were encountered: