cucumber / cucumber-js

Cucumber for JavaScript
https://cucumber.io
MIT License
5.04k stars 1.09k forks source link

The type `ISupportCodeLibrary` is not exported, but should be. #2283

Closed nicojs closed 1 year ago

nicojs commented 1 year ago

👓 What did you see?

Importing ISupportCodeLibrary is not exported from '@cucumber/cucumber/api'

 // 💥 error
import type { ISupportCodeLibrary } from '@cucumber/cucumber/api';

✅ What did you expect to see?

I would export it to be exported, since it's siblings are also exported:

 // ✅ 
import type { ISupportCodeCoordinatesOrLibrary, ISourcesCoordinates } from '@cucumber/cucumber/api';

📚 Any additional context?

Current workaround I'm using:

type ISupportCodeLibrary = Exclude<
  ISupportCodeCoordinatesOrLibrary,
  ISourcesCoordinates
>;
davidjgoss commented 1 year ago

Released in https://github.com/cucumber/cucumber-js/releases/tag/v9.1.2