mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
(react-relay) Adds default type for RelayProp
This commit is contained in:
2
types/react-relay/classic.d.ts
vendored
2
types/react-relay/classic.d.ts
vendored
@@ -209,7 +209,7 @@ export type OnReadyStateChange = (
|
||||
}
|
||||
) => void;
|
||||
|
||||
export interface RelayProp<V> {
|
||||
export interface RelayProp<V = any> {
|
||||
readonly route: { name: string }; // incomplete, also has params and queries
|
||||
readonly variables: V;
|
||||
readonly pendingVariables?: V;
|
||||
|
||||
Reference in New Issue
Block a user