greatly simplified app
This commit is contained in:
parent
9c0c2dab90
commit
35d1034c67
8 changed files with 156 additions and 204 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue