Skip to content

Commit

Permalink
Fixed flow typings (#1392)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Romanov committed Mar 12, 2018
1 parent ef9ffb9 commit 1f04e8b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions flow-typed/mobx.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
// @flow

declare export function getAtom(thing: any, property?: string): IDepTreeNode
declare export function getDebugName(thing: any, property?: string): string
declare export function getDependencyTree(thing: any, property?: string): IDependencyTree
declare export function getObserverTree(thing: any, property?: string): IObserverTree

export type IObservableMapInitialValues<K, V> = IMapEntries<K, V> | KeyValueMap<V> | IMap<K, V>

export interface IMobxConfigurationOptions {
Expand Down Expand Up @@ -301,6 +296,11 @@ declare export function autorun(
nameOrFunction: string | ((r: IReactionPublic) => any),
options?: IAutorunOptions
): any
declare export function reaction<T>(
expression: (r: IReactionPublic) => T,
effect: (arg: T, r: IReactionPublic) => void,
opts?: IReactionOptions
): any

export interface IWhenOptions {
name?: string,
Expand Down Expand Up @@ -475,3 +475,8 @@ declare export function onBecomeUnobserved<K>(
property: K,
listener: Lambda
): Lambda

declare export function getAtom(thing: any, property?: string): IDepTreeNode
declare export function getDebugName(thing: any, property?: string): string
declare export function getDependencyTree(thing: any, property?: string): IDependencyTree
declare export function getObserverTree(thing: any, property?: string): IObserverTree

0 comments on commit 1f04e8b

Please sign in to comment.