Skip to content

Commit

Permalink
also infer state correctly for rxwidget
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed Mar 12, 2024
1 parent cf56cbf commit 4932592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/src/Vis/visRxWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ interface VisRxWidgetState extends VisBaseWidgetState {
disabled?: boolean;
}

class VisRxWidget<TRxData extends Record<string, any>, TState extends Record<string, any> = Record<string, never>> extends VisBaseWidget<VisRxWidgetState & TState & { rxData: TRxData }> {
class VisRxWidget<TRxData extends Record<string, any>, TState extends VisRxWidgetState = VisRxWidgetState> extends VisBaseWidget<VisRxWidgetState & TState & { rxData: TRxData }> {
static POSSIBLE_MUI_STYLES = POSSIBLE_MUI_STYLES;

static i18nPrefix: string | undefined;
Expand Down

0 comments on commit 4932592

Please sign in to comment.