feat: add TypeScript types for single-byte.js#23
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add types for single-byte.js
Add TypeScript definitions for single-byte.js
Jan 22, 2026
ChALkeR
reviewed
Jan 22, 2026
ChALkeR
reviewed
Jan 22, 2026
Contributor
Author
ChALkeR
reviewed
Jan 22, 2026
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive TypeScript type definitions for the single-byte.js module, enabling better type safety and IDE support for users of this encoding library.
Changes:
- Added complete TypeScript type definitions in
single-byte.d.tswith full JSDoc documentation matching the README - Updated
package.jsonto include the new type definitions in the exports configuration and files array - Made minor documentation improvements in README.md (reordered sections, changed "Will throw" to "Throws" for consistency)
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| single-byte.d.ts | New TypeScript type definitions file with complete type declarations for all exported functions and interfaces, including detailed JSDoc documentation |
| package.json | Added single-byte.d.ts to files array and exports configuration to enable TypeScript support |
| README.md | Minor documentation improvements: reordered section content for better flow and standardized error documentation language |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: ChALkeR <291301+ChALkeR@users.noreply.github.com>
Co-authored-by: ChALkeR <291301+ChALkeR@users.noreply.github.com>
6f12fa1 to
4424599
Compare
ChALkeR
reviewed
Jan 22, 2026
Co-authored-by: ChALkeR <291301+ChALkeR@users.noreply.github.com>
ChALkeR
reviewed
Jan 22, 2026
Co-authored-by: ChALkeR <291301+ChALkeR@users.noreply.github.com>
ChALkeR
reviewed
Jan 22, 2026
Co-authored-by: ChALkeR <291301+ChALkeR@users.noreply.github.com>
ChALkeR
reviewed
Jan 22, 2026
Co-authored-by: ChALkeR <291301+ChALkeR@users.noreply.github.com>
ChALkeR
approved these changes
Jan 22, 2026
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original prompt
single-byte.js#22💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.