mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
[react-relay] Make QueryRenderer typings backwards compatible.
This commit is contained in:
Vendored
+2
-2
@@ -89,7 +89,7 @@ export const graphql: GraphqlInterface;
|
||||
// ReactRelayQueryRenderer
|
||||
// ~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
export interface QueryRendererProps<T extends RelayRuntimeTypes.OperationBase> {
|
||||
export interface QueryRendererProps<T extends RelayRuntimeTypes.OperationBase = RelayRuntimeTypes.OperationDefaults> {
|
||||
cacheConfig?: RelayRuntimeTypes.CacheConfig;
|
||||
environment: RelayRuntimeTypes.Environment;
|
||||
query?: RelayRuntimeTypes.GraphQLTaggedNode | null;
|
||||
@@ -97,7 +97,7 @@ export interface QueryRendererProps<T extends RelayRuntimeTypes.OperationBase> {
|
||||
variables: T["variables"];
|
||||
rerunParamExperimental?: RelayRuntimeTypes.RerunParam;
|
||||
}
|
||||
export interface ReadyState<T> {
|
||||
export interface ReadyState<T extends RelayRuntimeTypes.Variables = RelayRuntimeTypes.Variables> {
|
||||
error: Error | undefined | null;
|
||||
props: T | undefined | null;
|
||||
retry?(): void;
|
||||
|
||||
Reference in New Issue
Block a user