mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-30 02:16:01 +08:00
Update index.d.ts for react-redux (#20848)
* Update index.d.ts for react-redux known issue described in comments * minor * update
This commit is contained in:
10
types/react-redux/index.d.ts
vendored
10
types/react-redux/index.d.ts
vendored
@@ -7,9 +7,17 @@
|
||||
// Frank Tan <https://github.com/tansongyang>
|
||||
// Nicholas Boll <https://github.com/nicholasboll>
|
||||
// Dibyo Majumdar <https://github.com/mdibyo>
|
||||
// Prashant Deva <https://github.com/pdeva>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.4
|
||||
|
||||
|
||||
// Known Issue:
|
||||
// There is a known issue in TypeScript, which doesn't allow decorators to change the signature of the classes
|
||||
// they are decorating. Due to this, if you are using @connect() decorator in your code,
|
||||
// you will see a bunch of errors from TypeScript. The current workaround is to use connect() as a function call on
|
||||
// a separate line instead of as a decorator. Discussed in this github issue:
|
||||
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/20796
|
||||
|
||||
import * as React from 'react';
|
||||
import * as Redux from 'redux';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user