mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Merge pull request #32609 from mattkrick/master
[react-relay] fix for createPaginationContainer
This commit is contained in:
Vendored
+3
-2
@@ -6,6 +6,7 @@
|
||||
// Nicolas Pirotte <https://github.com/npirotte>
|
||||
// Cameron Knight <https://github.com/ckknight>
|
||||
// Kaare Hoff Skovgaard <https://github.com/kastermester>
|
||||
// Matt Krick <https://github.com/mattkrick>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.9
|
||||
|
||||
@@ -131,14 +132,14 @@ export interface PageInfo {
|
||||
}
|
||||
export interface ConnectionData {
|
||||
edges?: ReadonlyArray<any>;
|
||||
pageInfo?: Partial<PageInfo>;
|
||||
pageInfo?: Partial<PageInfo> | null;
|
||||
}
|
||||
export type RelayPaginationProp = RelayProp & {
|
||||
hasMore(): boolean;
|
||||
isLoading(): boolean;
|
||||
loadMore(
|
||||
pageSize: number,
|
||||
callback: (error?: Error) => void,
|
||||
callback?: ((error?: Error) => void) | null,
|
||||
options?: RefetchOptions
|
||||
): RelayRuntimeTypes.Disposable | undefined | null;
|
||||
refetchConnection(
|
||||
|
||||
Reference in New Issue
Block a user