UNPKG

mobx

Version:

Simple, scalable state management.

12 lines (11 loc) 431 B
export declare type ToJSOptions = { detectCycles?: boolean; exportMapsAsObjects?: boolean; recurseEverything?: boolean; }; /** * Basically, a deep clone, so that no reactive property will exist anymore. */ export declare function toJS<T>(source: T, options?: ToJSOptions): T; export declare function toJS(source: any, options?: ToJSOptions): any; export declare function toJS(source: any, options: ToJSOptions): any;