vibe icon indicating copy to clipboard operation
vibe copied to clipboard

docs: convert useListenFocusTriggers stories file to TS

Open LoayTarek5 opened this issue 1 year ago β€’ 2 comments

Here are the main changes made to convert the code to TypeScript: Added type annotation for the text state: useState("-"). Specified the type for the ref: useRef<HTMLButtonElement>(null). Added type annotations for the event parameters in onFocusByMouse and onFocusByKeyboard: React.FocusEvent<HTMLButtonElement>. Added an empty interface RenderProps which can be extended later if needed. Added as const to the Overview object to ensure type inference for its properties. Resolves #2474

  • [x] I have read the Contribution Guide for this project.

LoayTarek5 avatar Oct 11 '24 12:10 LoayTarek5

@LastExileUA @virtser @doronbrikman @jasonbahl could some one look at itπŸ˜ƒ

LoayTarek5 avatar Oct 13 '24 00:10 LoayTarek5

@LoayTarek5 there is still the old file :(

talkor avatar Oct 15 '24 15:10 talkor