react-web-native-sketch
Version:
[TODO: We need an overview of how this can be used via npm vs as a local package]
17 lines (16 loc) • 668 B
TypeScript
export declare enum TypeKeys {
SAVE_TABLE_OPTIONS = "instacar/persistedTableOptions/SAVE_TABLE_OPTIONS"
}
export interface Options {
}
export interface SaveTableOptionsAction {
type: TypeKeys.SAVE_TABLE_OPTIONS;
options: Options;
tableId: string;
}
export declare type ActionTypes = SaveTableOptionsAction;
export interface PersistedTableOptionsState {
[tableId: string]: Options;
}
export declare const persistedTableOptions: (state: PersistedTableOptionsState | undefined, action: SaveTableOptionsAction) => PersistedTableOptionsState;
export declare function setPersistentTableOptions(tableId: string, options: Options): SaveTableOptionsAction;