Skip to content

Token Unlocks API SDK w/ examples#13

Merged
danielkhoo merged 3 commits intomasterfrom
feature/token-unlocks
Mar 5, 2025
Merged

Token Unlocks API SDK w/ examples#13
danielkhoo merged 3 commits intomasterfrom
feature/token-unlocks

Conversation

@mmnavarr
Copy link
Member

@mmnavarr mmnavarr commented Mar 4, 2025

Title

Token Unlocks API SDK w/ examples #13

Description

--

Type of change

  • New feature (non-breaking change which adds functionality)

Related PRs

N/A

How can a reviewer test this code?

Run pnpm start:token-unlocks in /examples dir

Screenshots (if appropriate):

image image


const typeIntersection = [bodyType, queryParams ? `{ ${queryParams} }` : null, pathParams ? `{ ${pathParams} }` : null].filter(Boolean).join("; ");
// Combine path and query parameters into a single type
const typeIntersection = [bodyType, queryParams ? `{ ${queryParams} }` : null, pathParams ? `{ ${pathParams} }` : null].filter(Boolean).join(" & ");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix: for creating a unison type of path (route) param and query params

@mmnavarr mmnavarr marked this pull request as ready for review March 4, 2025 21:03
@danielkhoo danielkhoo self-requested a review March 5, 2025 06:49
@danielkhoo danielkhoo merged commit ee3600e into master Mar 5, 2025
2 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.

2 participants