Skip to content

Commit

Permalink
refactor: Update ChoiceMenuOptionsType to support generic type parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackRam-oss committed May 29, 2024
1 parent 73f183d commit 0bf73ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/ChoiceMenuOptionsType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ import { ChoiceMenuOptionClose } from "../classes/ChoiceMenuOption";
* Munu is a type that contains a list of Label that a player can choose from.
* For Ren'py this is the equivalent of a menu.
*/
export type ChoiceMenuOptionsType = (ChoiceMenuOption<any> | ChoiceMenuOptionClose)[]
export type ChoiceMenuOptionsType<T extends {} = {}> = (ChoiceMenuOption<T> | ChoiceMenuOptionClose)[]

0 comments on commit 0bf73ed

Please sign in to comment.