Skip to content

Commit

Permalink
TypeScript: fix signature of armor function (#1576)
Browse files Browse the repository at this point in the history
The `partIndex` and `partTotal` params of the `armor` function are
optional. This commit updates the openpgp.d.ts file to reflect this.
  • Loading branch information
LeoKotschenreuther committed Nov 16, 2022
1 parent 2f8a8c1 commit 4379bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openpgp.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ interface VerifyMessageResult {
/**
* Armor an OpenPGP binary packet block
*/
export function armor(messagetype: enums.armor, body: object, partindex: number, parttotal: number, config?: Config): string;
export function armor(messagetype: enums.armor, body: object, partindex?: number, parttotal?: number, config?: Config): string;

/**
* DeArmor an OpenPGP armored message; verify the checksum and return the encoded bytes
Expand Down

0 comments on commit 4379bfb

Please sign in to comment.