greatly simplified app

This commit is contained in:
Joeri Exelmans 2025-05-13 18:29:37 +02:00
parent 9c0c2dab90
commit 35d1034c67
8 changed files with 156 additions and 204 deletions

View file

@ -5,9 +5,9 @@ export interface Dynamic {
t: any;
}
export interface State2Props<T> {
state: T;
// setState: (callback: (state: T) => T) => void;
// setState: (state: T) => void;
setState: (state: EditorState) => void;
export type SetStateFn<InType=EditorState,OutType=InType> = (state: InType) => OutType;
export interface State2Props<InType,OutType=InType> {
state: InType;
setState: (callback: SetStateFn<InType,OutType>) => void;
}