mirror of
https://github.com/danbulant/jose
synced 2026-05-24 20:41:46 +00:00
refactor: import agent types differently
This commit is contained in:
parent
66546dbb4a
commit
3bda5796f5
1 changed files with 3 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue