support bigint cell content type by ItsNickBarry · Pull Request #340 · cli-table/cli-table3 · GitHub
Skip to content

support bigint cell content type#340

Merged
speedytwenty merged 3 commits into
cli-table:masterfrom
ItsNickBarry:bigint-content
Apr 24, 2024
Merged

support bigint cell content type#340
speedytwenty merged 3 commits into
cli-table:masterfrom
ItsNickBarry:bigint-content

Conversation

@ItsNickBarry

Copy link
Copy Markdown
Contributor

The existing type casting (String(value)) also works for BigInts, so I've added support in the Typescript definitions and the JS type checks.

@speedytwenty

Copy link
Copy Markdown
Collaborator

@speedytwenty

Copy link
Copy Markdown
Collaborator

You'll find basic examples for issue based tests here: https://github.com/cli-table/cli-table3/tree/master/test/issues

@ItsNickBarry

Copy link
Copy Markdown
Contributor Author

Added a test. Also had to update the eslint ecmaVersion so that it could parse bigint literals.

Comment thread .eslintrc.js
@@ -1,6 +1,6 @@
module.exports = {
parserOptions: {
ecmaVersion: 2018,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Unsure whether this should be considered a "breaking change". If it is, a major release still seems like overkill.

@speedytwenty

Copy link
Copy Markdown
Collaborator

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.

2 participants