Skip to content

Commit

Permalink
react-redux types: Add more $ReadOnly
Browse files Browse the repository at this point in the history
These are all bags of React props, so they should indeed be read-only
object types.
  • Loading branch information
gnprice committed Sep 21, 2021
1 parent 1aea4dd commit 1d858d0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/react-redux.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ import type { BoundedDiff } from './generics';

/* eslint-disable flowtype/generic-spacing */

export type OwnProps<-C, -SP> = $Diff<
BoundedDiff<$Exact<ElementConfig<C>>, SP>,
{| dispatch: Dispatch |},
export type OwnProps<-C, -SP> = $ReadOnly<
$Diff<$ReadOnly<BoundedDiff<$Exact<ElementConfig<C>>, SP>>, {| dispatch: Dispatch |}>,
>;

/**
Expand Down

0 comments on commit 1d858d0

Please sign in to comment.