UNPKG

@alentoma/usestate

Version:

Alternative to react.UseState where you could use and object with properties.

9 lines (8 loc) 375 B
export interface ObjectContext<T extends {}>{ readonly __isInitialized: boolean; readonly __setValue:<E extends {}>(item: E)=> void; readonly __toJson: ()=> string; readonly __cleanItem: ()=> string; } declare const CreateContext: <T>(item: T, hierarkiTree?: boolean, ignoreObjectKeyNames?:string[]) => ObjectContext<T> & T; export default CreateContext;