From 3bda5796f5ae98e220db96f13636fa30c4e869ad Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Tue, 24 Nov 2020 14:27:22 +0100 Subject: [PATCH] refactor: import agent types differently --- src/jwks/remote.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jwks/remote.ts b/src/jwks/remote.ts index 1f3683d7..7d81e1de 100644 --- a/src/jwks/remote.ts +++ b/src/jwks/remote.ts @@ -1,6 +1,6 @@ import type { KeyObject } from 'crypto' -import type { Agent as HttpAgent } from 'http' -import type { Agent as HttpsAgent } from 'https' +import type * as http from 'http' +import type * as https from 'https' import type { JWSHeaderParameters, JWK, FlattenedJWSInput, GetKeyFunction } from '../types.d' import parseJWK from '../jwk/parse.js' @@ -52,7 +52,7 @@ export interface RemoteJWKSetOptions { * This is a Node.js runtime specific option, it is ignored * when used outside of Node.js runtime. */ - agent?: HttpAgent | HttpsAgent + agent?: https.Agent | http.Agent } class RemoteJWKSet {