Skip to content

Commit

Permalink
Add "never", "always" and "observed" to enforceActions
Browse files Browse the repository at this point in the history
Add  "never", "always" and "observed" possible values to enforceActions configuration parameter.
It's because boolean and "strict" now deprecated.
  • Loading branch information
alexandersorokin committed Oct 11, 2018
1 parent 3f161f3 commit 564cc67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow-typed/mobx.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export type IObservableMapInitialValues<K, V> = IMapEntries<K, V> | KeyValueMap<V> | IMap<K, V>

export interface IMobxConfigurationOptions {
+enforceActions?: boolean | "strict",
+enforceActions?: boolean | "strict" | "never" | "always" | "observed",
computedRequiresReaction?: boolean,
isolateGlobalState?: boolean,
disableErrorBoundaries?: boolean,
Expand Down

0 comments on commit 564cc67

Please sign in to comment.