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

Type "GetKeyFunction" is present in "types.d.ts" but not exported in "index.d.ts" #591

Closed
2 tasks done
flaviostutz opened this issue Oct 12, 2023 · 1 comment · Fixed by #592
Closed
2 tasks done
Labels
question Further information is requested

Comments

@flaviostutz
Copy link
Contributor

What happened?

Our project can't use type GetKeyFunction because it is not exported by the lib

Version

4.15.3

Runtime

Node.js

Runtime Details

node 16; macbook

Code to reproduce

import {
  GetKeyFunction,
} from 'jose';

Required

  • I have searched the issues tracker and discussions for similar topics and couldn't find anything related.
  • I agree to follow this project's Code of Conduct
@panva
Copy link
Owner

panva commented Oct 12, 2023

Because there's a more narrow type of get key suitable for each getkey-able operation already exported.

JWTVerifyGetKey
JWTDecryptGetKey 
GeneralVerifyGetKey 
FlattenedVerifyGetKey 
CompactVerifyGetKey 
GeneralDecryptGetKey 
FlattenedDecryptGetKey 
CompactDecryptGetKey

@panva panva closed this as completed Oct 12, 2023
@panva panva added question Further information is requested and removed triage labels Oct 12, 2023
panva pushed a commit that referenced this issue Oct 13, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants