From 0277fcd1896af497e79190212b0719f7e62366c1 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Thu, 28 Nov 2019 09:00:36 +0100 Subject: [PATCH] fix(typescript): export Key Input types --- types/index.d.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 76592670c0..134809a9fd 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -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';