Update README.md

This commit is contained in:
Dovydas Navickas
2017-04-08 22:56:07 +03:00
committed by GitHub
parent 9f14f3670c
commit 9e35640e2d
+1 -1
View File
@@ -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<S, K>` becomes ideal.
```ts