Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export type ProduceJWT #285

Merged
merged 1 commit into from
Oct 15, 2021
Merged

Conversation

evan361425
Copy link
Contributor

It is useful for type declaration:

function configJWT(jwt: ProduceJWT, config: Configuration) {
  // ...
}

const signJWT = new SignJWT(payload);
const encJWT = new EncryptJWT(payload);

// share for sign and encrypt
configJWT(signJWT, config);
configJWT(encJWT, config);

@panva panva merged commit 2b8738e into panva:main Oct 15, 2021
@panva panva changed the title Export type ProductJWT Export type ProduceJWT Oct 15, 2021
@evan361425 evan361425 deleted the export-productjwt-type branch October 15, 2021 08:12
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants