Skip to content

fix: export Suibets alias in TypeScript SDK#959

Open
realfishsam wants to merge 1 commit into
mainfrom
fix/easy-ts-sdk-parity
Open

fix: export Suibets alias in TypeScript SDK#959
realfishsam wants to merge 1 commit into
mainfrom
fix/easy-ts-sdk-parity

Conversation

@realfishsam

@realfishsam realfishsam commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a TypeScript Suibets export alias for SuiBets
  • Include the alias in the package root exports and default export object

Fixes #885

Test Plan

  • git diff --check
  • npm run build --workspace=pmxtjs (not rerun here; generated TypeScript client is absent in this checkout and the same command fails before this change on ../generated/src/index.js)

@realfishsam

Copy link
Copy Markdown
Contributor Author

PR Review: PASS (NOT VERIFIED)

What This Does

Adds a TypeScript SDK Suibets casing alias beside SuiBets and exports it from the package entrypoint/default object.

Blast Radius

TypeScript SDK entrypoint and client class exports only.

Consumer Verification

Before (base branch):
Base TypeScript consumers could import/use SuiBets but not the Python-style Suibets casing alias.

After (PR branch):
PR adds export const Suibets = SuiBets and includes it in sdks/typescript/index.ts. Core build/Jest passed (24 suites, 644 tests); root verification then hit missing pytest.

Test Results

  • Build: PASS
  • Unit tests: CORE PASS (24 suites, 644 tests; root verification blocked by missing pytest)
  • Server starts: PASS during root verification
  • E2E smoke: NOT VERIFIED (TypeScript package import smoke not run)

Findings

No blocking findings.

PMXT Pipeline Check

  • Field propagation (3-layer): N/A
  • OpenAPI sync: N/A
  • Financial precision: N/A
  • Type safety: OK
  • Auth safety: N/A

Semver Impact

patch -- backwards-compatible SDK export alias.

Risk

Published package export behavior was not validated with a built TypeScript SDK package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sdk-drift: Python exports Suibets lowercase alias for SuiBets; TypeScript has no equivalent alias

1 participant