Skip to content

fix: improve TypeScript type safety in SelectOption interface#1284

Open
thuanpham582002 wants to merge 1 commit intoWei-Shaw:mainfrom
thuanpham582002:fix/typescript-type-safety
Open

fix: improve TypeScript type safety in SelectOption interface#1284
thuanpham582002 wants to merge 1 commit intoWei-Shaw:mainfrom
thuanpham582002:fix/typescript-type-safety

Conversation

@thuanpham582002
Copy link

Summary

  • Replace [key: string]: any index signature in SelectOption interface with a specific union type string | number | boolean | null | undefined
  • Add optional disabled property to align with the Select.vue component's SelectOption interface

Test plan

  • npm run typecheck passes with no errors

Replace the loose `any` index signature with explicit union type
`string | number | boolean | null | undefined` and add optional
`disabled` property to align with the Select.vue component interface.
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.

1 participant