-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat(Nodes): add grouping #1584
Conversation
f789545
to
19e1ff1
Compare
19e1ff1
to
23d4212
Compare
|
||
export function parseNodesGroupByParam( | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
param?: any, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to set string
type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will require to set type to param
anyway, because Array.includes
requires arg to have the same type as array, although it may accept anything - Type 'string' is not assignable to type 'NodesGroupByField | undefined'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if Array.some
will be used instead of includes
, no problems with type will appear
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array.some
doesn't set type to the passed arg. I found workaround with Array.find
Closes #1411
Stand: https://nda.ya.ru/t/tl439E2b79U5Zq
CI Results
Test Status: β PASSED
π Full Report
Bundle Size: πΊ
Current: 79.23 MB | Main: 79.21 MB
Diff: +0.02 MB (0.02%)
βΉοΈ CI Information