Skip to content
Myr

Use explicit syntax for exact and inexact objects

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Björgvin Ragnarsson · committed by Björgvin Ragnarsson · parent 73d226c · Browse files · 2 files+5 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−2 removed

  • tests:+5 added−2 removed

2 files+5 added−2 removed

modified:__tests__/flow/.flowconfig+3 added
1[include]2../../dist34[lints]5ambiguous-object-type=error6deprecated-type=error7untyped-import=error89[options]10suppress_comment= \\(.\\|\n\\)*\\$ExpectError11include_warnings=true
modified:__tests__/flow/flow.js.flow+2 added-2 removed
26 unmodified lines
2728console.log(result2.x)2930const f = produce(31 (draft): {x: number} => {31 (draft): {| x: number |} => {32 return {x: 4}33 }34)35f({x: 3})
38 unmodified lines
7475{76 // curried f & no initial arg77 const f2 = produce(78 (state: {x: number}, increment: number): void => {78 (state: {| x: number |}, increment: number): void => {79 state.x += increment80 }81 )82
51 unmodified lines