Release v3.0.2 - #35
Merged
Merged
Conversation
The lazy deploy and history-copy calls return LazyDeployment and LazyHistoryCopy, and the constants getter returns KokioConstants, but none of them could be imported from kokio-sdk/types.
Without the extension the emitted declarations fail to resolve for apps on moduleResolution node16 or nodenext, so kokio-sdk/types and the eSIM wallet types came through as errors or any.
ManulParihar
added a commit
that referenced
this pull request
Sep 18, 2026
## Export missing types and fix type resolution on nodenext **Exports added to `kokio-sdk/types`** - `LazyDeployment`, `LazyDeploymentBatch`, `LazyHistoryCopy`, `LazyHistoryBatch`: returned by the admin lazy wallet deploy and history-copy calls, but could not be imported. - `KokioConstants`: returned by `kokio.constants` and `kokioAdmin.constants`. **Fix** - Two relative imports had no `.js` extension. The published type files kept that path, so apps on `moduleResolution: node16` or `nodenext` got TS2834 errors from `kokio-sdk/types`, or the types came through as `any` with `skipLibCheck` on. No runtime changes. **Checked** - `tsc` passes and all 398 unit tests pass. - A test app on `nodenext` imports every new type from the built package without errors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Export missing types and fix type resolution on nodenext
Exports added to
kokio-sdk/typesLazyDeployment,LazyDeploymentBatch,LazyHistoryCopy,LazyHistoryBatch: returned by the admin lazy wallet deploy and history-copy calls, but could not be imported.KokioConstants: returned bykokio.constantsandkokioAdmin.constants.Fix
.jsextension. The published type files kept that path, so apps onmoduleResolution: node16ornodenextgot TS2834 errors fromkokio-sdk/types, or the types came through asanywithskipLibCheckon.No runtime changes.
Checked
tscpasses and all 398 unit tests pass.nodenextimports every new type from the built package without errors.