diff --git a/flow-typed/mobx.js b/flow-typed/mobx.js index c1cc79fbd..b5e658d22 100644 --- a/flow-typed/mobx.js +++ b/flow-typed/mobx.js @@ -1,5 +1,11 @@ // @flow +export type CreateObservableOptions = { + name?: string, + deep?: boolean, + defaultDecorator?: any +} + export type IObservableMapInitialValues = IMapEntries | KeyValueMap | IMap export interface IMobxConfigurationOptions { @@ -234,13 +240,13 @@ export interface IObservableFactory { } declare export class IObservableFactories { - box(value?: T, name?: string): IObservableValue, - array(initialValues?: T[], name?: string): IObservableArray, + box(value?: T, options?: CreateObservableOptions): IObservableValue, + array(initialValues?: T[], options?: CreateObservableOptions): IObservableArray, map( initialValues?: IObservableMapInitialValues, - name?: string + options?: CreateObservableOptions ): ObservableMap, - object(props: T, name?: string): T & IObservableObject, + object(props: T, options?: CreateObservableOptions): T & IObservableObject, ref(target: Object, property?: string, descriptor?: PropertyDescriptor): any, shallow(target: Object, property?: string, descriptor?: PropertyDescriptor): any, deep(target: Object, property?: string, descriptor?: PropertyDescriptor): any