Skip to content

Fix for setState definition#5779

Closed
kikoseijo wants to merge 1 commit into
facebook:masterfrom
kikoseijo:patch-1
Closed

Fix for setState definition#5779
kikoseijo wants to merge 1 commit into
facebook:masterfrom
kikoseijo:patch-1

Conversation

@kikoseijo

Copy link
Copy Markdown

Does not match the specs removed to pass latest flow check.

setState(
partialState: $Shape | ((State, Props) => $Shape | void),
callback?: () => mixed,
): void;

Does not match the specs removed to pass latest flow check.

  setState(
    partialState: $Shape<State> | ((State, Props) => $Shape<State> | void),
    callback?: () => mixed,
  ): void;
@mrkev

mrkev commented Jul 17, 2018

Copy link
Copy Markdown
Contributor

Wait, this did match the spec, and the change makes it invalid javascript?

Closing 😅

@mrkev mrkev closed this Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants