Skip to content

feat: extract SDK types into types.ts and fix CI workflow#28

Merged
wumibals merged 1 commit into
LadderMine:mainfrom
Hassan-oladipupo:feat/extract-sdk-types
May 10, 2026
Merged

feat: extract SDK types into types.ts and fix CI workflow#28
wumibals merged 1 commit into
LadderMine:mainfrom
Hassan-oladipupo:feat/extract-sdk-types

Conversation

@Hassan-oladipupo
Copy link
Copy Markdown
Contributor

Summary

Resolves #14.

Changes

  • sdks/typescript/src/types.ts (new): extracted Tier, Network, YieldLadderOptions, and Position types from index.ts into a dedicated file.
  • sdks/typescript/src/index.ts: re-exports all four types from ./types for full backwards compatibility; imports them locally for class usage.
  • sdks/typescript/pnpm-lock.yaml (new): committed lockfile so CI can run --frozen-lockfile.
  • .github/workflows/ci.yml: fixed two workflow bugs:
    • Added cache: 'pnpm' + cache-dependency-path to both app and sdk jobs (previously no caching, causing fresh downloads on every run).
    • Switched both jobs from --no-frozen-lockfile to --frozen-lockfile for reproducible installs.

Tested

pnpm typecheck passes locally in sdks/typescript.

- Extract Tier, Network, YieldLadderOptions, Position from index.ts
  into a dedicated sdks/typescript/src/types.ts
- Re-export all types from index.ts for backwards compatibility
- Add pnpm-lock.yaml for the SDK package
- Fix CI: add pnpm cache (cache: pnpm + cache-dependency-path) to
  app and sdk jobs; switch both to --frozen-lockfile

closes LadderMine#14
@vercel
Copy link
Copy Markdown

vercel Bot commented May 9, 2026

@Hassan-oladipupo is attempting to deploy a commit to the wumibals' projects Team on Vercel.

A member of the Team first needs to authorize it.

@wumibals wumibals merged commit d26a35a into LadderMine:main May 10, 2026
3 of 4 checks passed
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.

feat: add sdks/typescript/src/types.ts

2 participants