mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge pull request #15737 from DovydasNavickas/patch-2
Fix react README.md typo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user