From 00e964a7d92ba8c2f2a4403a8ab67d00c1ab12ff Mon Sep 17 00:00:00 2001 From: Walker Christie Date: Wed, 16 Dec 2020 12:11:31 -0500 Subject: [PATCH] Add setOf to README A tiny readme change that adds `setOf` to the list of API functions. My team wasn't sure whether `setOf` existed but found it after looking at the source so I decided to give the docs a quick update. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ed04afe..1095321 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,8 @@ const aMap = Immutable.Map([ * `ImmutablePropTypes.orderedSetOf` is basically the same as `listOf`, but it is specific to `Immutable.OrderedSet`. +* `ImmutablePropTypes.setOf` is basically the same as `listOf`, but it is specific to `Immutable.Set`. + * `ImmutablePropTypes.stackOf` is basically the same as `listOf`, but it is specific to `Immutable.Stack`. * `ImmutablePropTypes.iterableOf` is the generic form of listOf/mapOf. It is useful when there is no need to validate anything other than Immutable.js compatible (ie. `Immutable.Iterable`). Continue to use `listOf` and/or `mapOf` when you know the type.