kjur / jsrsasign

The 'jsrsasign' (RSA-Sign JavaScript Library) is an opensource free cryptography library supporting RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp, CAdES and JSON Web Signature/Token in pure JavaScript.
https://kjur.github.io/jsrsasign
Other
3.28k stars 644 forks source link

Property 'jws' does not exist on type 'typeof jsrsasign' #596

Closed imamnghr closed 1 year ago

kjur commented 1 year ago

How did you used jws? By Node or on the browser?

imamnghr commented 1 year ago

How did you used jws? By Node or on the browser?

i use the browser, i solve the problem but need to update the jsrsasign.d.ts in my node_modules like this namespace jws { namespace JWS {

            function sign(algorithm: string, header: string, payload: string, key: string): string;
        }
    }
kjur commented 1 year ago

Please ask jsrsasign.d.ts support for it. "jsrsasign.d.ts" is not official one.