Skip to content

feat(sign): add generics to sign and sign async methods#1946

Merged
kamilmysliwiec merged 1 commit intonestjs:masterfrom
ahmedwael216:add-generics-to-sign
Oct 10, 2025
Merged

feat(sign): add generics to sign and sign async methods#1946
kamilmysliwiec merged 1 commit intonestjs:masterfrom
ahmedwael216:add-generics-to-sign

Conversation

@ahmedwael216
Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

the sign ans sign async when provided with an object don't accept generics, while the decode does,

What is the new behavior?

make the sign and sign async accept generics when provided an object, this increases type safety and prevents DX

Does this PR introduce a breaking change?

  • Yes
  • No

@ahmedwael216 ahmedwael216 changed the title feat(sign): add generics to sign ans sign async methods feat(sign): add generics to sign and sign async methods May 13, 2025
@Ibrahim-Soltan
Copy link
Copy Markdown

Finally this pr

@kamilmysliwiec kamilmysliwiec added the enhancement New feature or request label Oct 10, 2025
@kamilmysliwiec kamilmysliwiec merged commit 732daf5 into nestjs:master Oct 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants