Skip to content

Commit

Permalink
fix(typescript): export Key Input types
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Nov 28, 2019
1 parent 0781098 commit 0277fcd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ export type asymmetricKeyObjectTypes = 'private' | 'public';
export type keyObjectTypes = asymmetricKeyObjectTypes | 'secret';
export type JWTProfiles = 'id_token';
export type KeyInput = PrivateKeyInput | PublicKeyInput | string | Buffer;

type ProduceKeyInput = JWK.Key | KeyObject | KeyInput | JWKOctKey | JWKRSAKey | JWKECKey | JWKOKPKey;
type ConsumeKeyInput = ProduceKeyInput | JWKS.KeyStore;
export type ProduceKeyInput = JWK.Key | KeyObject | KeyInput | JWKOctKey | JWKRSAKey | JWKECKey | JWKOKPKey;
export type ConsumeKeyInput = ProduceKeyInput | JWKS.KeyStore;

export interface JWKOctKey extends BasicParameters { // no x5c
kty: 'oct';
Expand Down

0 comments on commit 0277fcd

Please sign in to comment.