Closed Baune8D closed 12 months ago
The proper way to currently use the library with TypeScript and esModuleInterop: false is:
esModuleInterop: false
import * as cypressSplit from 'cypress-split'; setupNodeEvents(on, config) { cypressSplit(on, config); return config; },
It works at runtime, but at the same time throws a TS2349 error because of invalid typings.
TS2349
This PR fixes the typings so imports are now valid using 1 of these approaches:
esModuleInterop: false:
import * as cypressSplit from 'cypress-split';
esModuleInterop: true:
esModuleInterop: true
import cypressSplit from 'cypress-split';
:tada: This PR is included in version 1.5.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
The proper way to currently use the library with TypeScript and
esModuleInterop: false
is:It works at runtime, but at the same time throws a
TS2349
error because of invalid typings.This PR fixes the typings so imports are now valid using 1 of these approaches:
esModuleInterop: false
:esModuleInterop: true
: