WidgetState

TypeScript
type WidgetState = {
  [K in WidgetIdType]: {
    id: string;
    type: K;
    value?: ComponentProps<WidgetComponent[K]>['value'];
    align?: WidgetAlign;
  };
}[WidgetIdType];