Skip to content

Commit

Permalink
🏷️ 🐛 [signer-p12] Fix the JSDoc on P12Signer.sign
Browse files Browse the repository at this point in the history
fixes #224
  • Loading branch information
vbuch committed Jan 29, 2024
1 parent 17a9e6b commit 91c9c70
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions packages/signer-p12/dist/P12Signer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ export class P12Signer extends Signer {
asn1StrictParsing: boolean;
};
cert: any;
/**
* @param {Buffer} pdfBuffer
* @param {Date | undefined} signingTime
* @returns {Buffer}
*/
sign(pdfBuffer: Buffer, signingTime?: Date | undefined): Buffer;
}
export type SignerOptions = {
passphrase?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/signer-p12/dist/P12Signer.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/signer-p12/dist/P12Signer.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class P12Signer extends _utils.Signer {
/**
* @param {Buffer} pdfBuffer
* @param {Date | undefined} signingTime
* @returns {Buffer}
* @returns {Promise<Buffer>}
*/
async sign(pdfBuffer, signingTime = undefined) {
if (!(pdfBuffer instanceof Buffer)) {
Expand Down
2 changes: 1 addition & 1 deletion packages/signer-p12/src/P12Signer.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class P12Signer extends Signer {
/**
* @param {Buffer} pdfBuffer
* @param {Date | undefined} signingTime
* @returns {Buffer}
* @returns {Promise<Buffer>}
*/
async sign(pdfBuffer, signingTime = undefined) {
if (!(pdfBuffer instanceof Buffer)) {
Expand Down

0 comments on commit 91c9c70

Please sign in to comment.