Skip to content

Commit

Permalink
[Select] Fix array mutability flow annotation (mui#8870)
Browse files Browse the repository at this point in the history
  • Loading branch information
dapetcu21 authored and the-noob committed Nov 17, 2017
1 parent 366920e commit fa7bf62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export type Props = {
/**
* The input value, required for a controlled component.
*/
value?: Array<string | number> | string | number,
value?: $ReadOnlyArray<string | number> | string | number,
};

function Select(props: ProvidedProps & Props) {
Expand Down
2 changes: 1 addition & 1 deletion src/Select/SelectInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export type Props = {
/**
* The value of the component, required for a controlled component.
*/
value?: string | number | Array<string | number>,
value?: string | number | $ReadOnlyArray<string | number>,
};

type State = {
Expand Down

0 comments on commit fa7bf62

Please sign in to comment.