@focuson/utils
Version:
Common utilities for the @focuson project
13 lines (12 loc) • 761 B
TypeScript
/** list has been removed from here. A lot of the infrastructure has been left behind in case we want to bring it back
* The primary reason is 'what does it mean'. The rest is focused on a single instance. The name sucks... a lot doesn't feel right
* If we want a list we just create a resource that is the list
*/
export type RestAction = 'get' | 'updateWithoutFetch' | 'update' | 'create' | 'createWithoutFetch' | 'delete' | RestStateChange;
export declare function actionsEqual(r1: RestAction, r2: RestAction): boolean;
export interface RestStateChange {
state: string;
}
export declare function isRestStateChange(r: RestAction): r is RestStateChange;
export type RestResult = 'refresh' | 'nothing';
export type PageMode = 'view' | 'create' | 'edit';