(react-relay) Adds default type for RelayProp

This commit is contained in:
Nicolas Pirotte
2018-02-01 16:10:35 +01:00
parent 744a850260
commit 2a776fbffe

View File

@@ -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;