Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
rvion committed Dec 7, 2023
1 parent d59f323 commit a2b2ab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controls/Widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ export class Widget_group<T extends { [key: string]: Widget }> implements IReque
type: 'group' = 'group'
state: Widget_group_state<T>
/** all [key,value] pairs */
get entries() { return Object.entries(this.state.values) as [keyof T, T[keyof T]][] }
get entries() { return Object.entries(this.state.values) as [string, any][] }
/** the dict of all child widgets */
get values() { return this.state.values }
constructor(
Expand Down Expand Up @@ -1205,7 +1205,7 @@ export class Widget_groupOpt<T extends { [key: string]: Widget }> implements IRe
type: 'groupOpt' = 'groupOpt'
state: Widget_groupOpt_state<T>
/** all [key,value] pairs */
get entries() { return Object.entries(this.state.values) as [keyof T, T[keyof T]][] }
get entries() { return Object.entries(this.state.values) as [string, any][] }
/** the dict of all child widgets */
get values() { return this.state.values }
constructor(
Expand Down

0 comments on commit a2b2ab4

Please sign in to comment.