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

[qrcode] improve types: toCanvas, toFileStream #35367

Merged
merged 1 commit into from
May 14, 2019

Conversation

mnahkies
Copy link
Contributor

  • add type for error correction level
  • change toCanvas to accept renderer options
  • add file stream options, and change toFileStream to use

Please fill in this template.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code. (Compile and run.)
  • Add or edit tests to reflect the change. (Run with npm test.)
  • Follow the advice from the readme.
  • Avoid common mistakes.
  • Run npm run lint package-name (or tsc if no tslint.json is present).

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes:

toCanvas:
https://github.com/soldair/node-qrcode/blob/master/lib/renderer/canvas.js#L34

toFileStream:
https://github.com/soldair/node-qrcode/blob/master/lib/server.js#L134

- add type for error correction level
- change toCanvas to accept renderer options
- add file stream options, and change toFileStream to use
@typescript-bot
Copy link
Contributor

typescript-bot commented May 11, 2019

@mnahkies Thank you for submitting this PR!

🔔 @plantain-00 - please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead.

@typescript-bot typescript-bot added Owner Approved A listed owner of this package signed off on the pull request. Merge:Express and removed Awaiting reviewer feedback labels May 11, 2019
@typescript-bot
Copy link
Contributor

A definition owner has approved this PR ⭐️. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait. Thank you for your contribution to DefinitelyTyped!

@sandersn sandersn merged commit a130281 into DefinitelyTyped:master May 14, 2019
iRON5 pushed a commit to iRON5/DefinitelyTyped that referenced this pull request Aug 13, 2019
- add type for error correction level
- change toCanvas to accept renderer options
- add file stream options, and change toFileStream to use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Owner Approved A listed owner of this package signed off on the pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants