DefinitelyTyped/types/node-forge
Tim Düsterhus 1db84f28f5 node-forge: Fix type of pki.rsa.setPublicKey() (#37081)
- Replace the `any`s by proper types.
- Return an `pki.rsa.PublicKey` instead of `pki.PublicKey` to be
  more specific (the latter also allows ed25519).
- Make `pki.setRsaPublicKey` an alias of `rsa.setPublicKey`.
2019-08-05 09:52:34 -07:00
..
index.d.ts
node-forge-tests.ts
README.md
tsconfig.json
tslint.json

DefinitelyTyped for node-forge

Current node-forge Version

v0.7.6

Usage

npm install --save-dev @types/node-forge
npm install --save node-forge

example:

import * as forge from "node-forge";

Buffer.isBuffer(forge.pki.ed25519.generateKeyPair().publicKey) // true

License

BSD-2-Clause

dependencies

@types/node

Author

Seth Westphal Kay Schecker Aakash Goenka Rafal2228 Beeno Tung Nikita Koryabkin