From 9e35640e2db8df8a45935e4d6ec5390b1514569f Mon Sep 17 00:00:00 2001 From: Dovydas Navickas Date: Sat, 8 Apr 2017 22:56:07 +0300 Subject: [PATCH] Update README.md --- types/react/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react/README.md b/types/react/README.md index c09dc060c2..a868f10f72 100644 --- a/types/react/README.md +++ b/types/react/README.md @@ -1,6 +1,6 @@ ## Known Problems & Workarounds -### **The type of `setState` is will be overly strict prior to TS 2.1.5** +### **The type of `setState` is overly strict prior to TS 2.1.5** Starting with TypeScript 2.1, its more correct than it used to be, with a caveat: optional parameters on state interfaces are no longer valid. This issue is corrected in 2.1.5 (and beyond) and thus `Pick` becomes ideal. ```ts