File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ describe('keystore', () => {
24
24
privKey : 'privkey1' ,
25
25
cert : 'cert1' ,
26
26
keyAlg : 'RS256' ,
27
- pubkeyJwk : { kid : '1' , x5c : '' } ,
27
+ pubkeyJwk : { kid : '1' , x5c : '' } as any ,
28
28
} )
29
29
newKeys . set ( '2' , {
30
30
timestamp : Math . floor ( Date . now ( ) / 1000 ) - 20000 ,
31
31
privKey : 'privkey2' ,
32
32
cert : 'cert2' ,
33
33
keyAlg : 'RS256' ,
34
- pubkeyJwk : { kid : '2' , x5c : '' } ,
34
+ pubkeyJwk : { kid : '2' , x5c : '' } as any ,
35
35
} )
36
36
return newKeys
37
37
}
Original file line number Diff line number Diff line change 16
16
" es2018"
17
17
],
18
18
"resolveJsonModule" : true ,
19
- "noEmitOnError" : true
19
+ "noEmitOnError" : true ,
20
+ "typeRoots" : [
21
+ " node_modules/@types" ,
22
+ " ./types"
23
+ ]
20
24
},
21
25
"exclude" : [
22
26
" dist" ,
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ declare module 'jsrsasign' {
269
269
*
270
270
* @return returns RSAKey/KJUR.crypto.{ECDSA,DSA} object of public key
271
271
*/
272
- static getPublicKeyFromCertHex ( h : string )
272
+ static getPublicKeyFromCertHex ( h : string ) : any
273
273
274
274
/**
275
275
* Get RSA/DSA/ECDSA public key object from PEM certificate string.
@@ -278,7 +278,7 @@ declare module 'jsrsasign' {
278
278
*
279
279
* @return returns RSAKey/KJUR.crypto.{ECDSA,DSA} object of public key
280
280
*/
281
- static getPublicKeyFromCertPEM ( sCertPEM : string )
281
+ static getPublicKeyFromCertPEM ( sCertPEM : string ) : any
282
282
283
283
/**
284
284
* Get public key information from PEM certificate.
@@ -287,7 +287,7 @@ declare module 'jsrsasign' {
287
287
*
288
288
* @return hash of information for public key
289
289
*/
290
- static getPublicKeyInfoPropOfCertPEM ( sCertPEM : string )
290
+ static getPublicKeyInfoPropOfCertPEM ( sCertPEM : string ) : any
291
291
}
292
292
293
293
function hextob64 ( s : string ) : string
You can’t perform that action at this time.
0 commit comments