Skip to content

Commit

Permalink
refactor: Update getChoiceMenuOptions 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 1a251ee commit 506c51d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/DialogueUtility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export function setChoiceMenuOptions<T extends {} = {}>(options: ChoiceMenuOptio
* Get the options to be shown in the game
* @returns Options to be shown in the game
*/
export function getChoiceMenuOptions<TChoice extends ChoiceMenuOptionsType = ChoiceMenuOptionsType>(): TChoice | undefined {
export function getChoiceMenuOptions<TChoice extends ChoiceMenuOptionsType = ChoiceMenuOptionsType<{ [key: string | number | symbol]: any }>>(): TChoice | undefined {
let d = GameStorageManager.getVariable<IStoratedChoiceMenuOption[]>(GameStorageManager.keysSystem.CURRENT_MENU_OPTIONS_MEMORY_KEY)
if (d) {
let options: ChoiceMenuOptionsType = []
Expand Down

0 comments on commit 506c51d

Please sign in to comment.