-
Notifications
You must be signed in to change notification settings - Fork 322
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
convert VirtualizedList stories helpers file to TS #2531
Conversation
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.
Thanks @Piyush-Tilokani!
Please use existing type VirtualizedListItem
instead of creating a new type
packages/core/src/components/VirtualizedList/__stories__/VirtualizedList.stories.helpers.tsx
Outdated
Show resolved
Hide resolved
Updated in the latest commit |
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.
Thank you @Piyush-Tilokani ! Let's just remove the redundant type as CI fails
@@ -2,17 +2,19 @@ | |||
import React from "react"; | |||
import { Tip } from "vibe-storybook-components"; | |||
|
|||
export const generateItems = (defaultItemSize = 30, itemsCount, layout) => { | |||
const items = []; | |||
export const generateItems = (defaultItemSize: number = 30, itemsCount: number, layout: string) => { |
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.
Please remove the type from defaultItemSize
as it inferred from the default value
See CI check
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.
Made the change in the latest commit
please check if it is correct
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.
Awesome, thanks @Piyush-Tilokani !
Resolves #2514
Converted the
packages/core/src/components/VirtualizedList/__stories__/VirtualizedList.stories.helpers.js
file to .tsxPlease review and merge
Do let me know if any corrections are required
Thank you