mattrglobal / bbs-signatures

An implementation of BBS+ signatures for node and browser environments
Apache License 2.0
108 stars 30 forks source link

feat(types): convert exports to explicit type exports #150

Open kad-busses opened 1 year ago

kad-busses commented 1 year ago

Description

Motivation and Context

Types cannot be re-exported when using the --isolatedModules TypeScript compiler flag. For some transpilers (Babel for example) this flag is mandatory, making it impossible to add this package.

TypeScript has a Type-Only Imports and Export feature, which addresses this issue. This PR converts the type exports to explicit types.

Closes https://github.com/mattrglobal/bbs-signatures/issues/69

Does this PR introduce a breaking change?

Which merge strategy will you use?

trevormil commented 5 months ago

Running into the same problem. I am doing this manually. Would love for this to be added to the npm package :)

truonghaha commented 2 months ago

Hi team, we are experiencing the same issue. Just wonder why this PR has been open for a year without approval? 😅

trevormil commented 2 months ago

Hi team, we are experiencing the same issue. Just wonder why this PR has been open for a year without approval? 😅

Hey.

If you need, I created a fork with this fixed at

npm i @trevormil/bbs-signatures