Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript: fix signature of armor function #1576

Merged
merged 1 commit into from Nov 16, 2022

Conversation

LeoKotschenreuther
Copy link
Contributor

In the JSDoc the partIndex and partTotal params of the armor function are marked as optional. Also when reading the function it appears that it will still work if they are not passed. This commit updates the openpgp.d.ts file to match what I observed in the actual implementaion.

In the [JSDoc](https://github.com/openpgpjs/openpgpjs/blob/main/src/encoding/armor.js#L357-L358)
the partIndex and partTotal params of the `armor` function are marked as
optional. Also when reading the function it appears that it will still work
if they are not passed. This commit updates the openpgp.d.ts file to match
what I observed in the actual implementaion.
@LeoKotschenreuther LeoKotschenreuther marked this pull request as ready for review November 3, 2022 15:52
Copy link
Member

@twiss twiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks!

@twiss twiss merged commit 4379bfb into openpgpjs:main Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants