Skip to content

feat: support bigint type #35

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

Merged
merged 3 commits into from
Sep 20, 2022
Merged

feat: support bigint type #35

merged 3 commits into from
Sep 20, 2022

Conversation

Yazawazi
Copy link
Collaborator

Trying to add support for the bigint type.

@@ -46,7 +46,7 @@ export function createEasyType<Value> (
store => store.colorspace[config.colorKey])
return (
<InputBase
value={value}
value={type === 'bigint' ? `${value}` : value}
Copy link
Contributor

Choose a reason for hiding this comment

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

just treat everything as ${value}

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should detect the type in the createEasyType function. That's not what it supposed should do

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, type checking needs to be done in the function, not in the expression, but except for string and number, it seems that there are few types that need to be converted?

@himself65 himself65 linked an issue Sep 20, 2022 that may be closed by this pull request
@himself65 himself65 merged commit eaa2239 into TexteaInc:main Sep 20, 2022
Yazawazi added a commit that referenced this pull request Mar 10, 2023
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.

support bigint
2 participants