@@ -14,7 +14,7 @@ interface ArraySliceMetaInfo {
1414 * a connection object for use in GraphQL. It uses array offsets as pagination,
1515 * so pagination will only work if the array is static.
1616 */
17- export function connectionFromArray < T > (
17+ export declare function connectionFromArray < T > (
1818 data : ReadonlyArray < T > ,
1919 args : ConnectionArguments ,
2020) : Connection < T > ;
@@ -23,7 +23,7 @@ export function connectionFromArray<T>(
2323 * A version of `connectionFromArray` that takes a promised array, and returns a
2424 * promised connection.
2525 */
26- export function connectionFromPromisedArray < T > (
26+ export declare function connectionFromPromisedArray < T > (
2727 dataPromise : Promise < ReadonlyArray < T > > ,
2828 args : ConnectionArguments ,
2929) : Promise < Connection < T > > ;
@@ -37,7 +37,7 @@ export function connectionFromPromisedArray<T>(
3737 * to materialize the entire array, and instead wish pass in a slice of the
3838 * total result large enough to cover the range specified in `args`.
3939 */
40- export function connectionFromArraySlice < T > (
40+ export declare function connectionFromArraySlice < T > (
4141 arraySlice : ReadonlyArray < T > ,
4242 args : ConnectionArguments ,
4343 meta : ArraySliceMetaInfo ,
@@ -47,7 +47,7 @@ export function connectionFromArraySlice<T>(
4747 * A version of `connectionFromArraySlice` that takes a promised array slice,
4848 * and returns a promised connection.
4949 */
50- export function connectionFromPromisedArraySlice < T > (
50+ export declare function connectionFromPromisedArraySlice < T > (
5151 dataPromise : Promise < ReadonlyArray < T > > ,
5252 args : ConnectionArguments ,
5353 arrayInfo : ArraySliceMetaInfo ,
@@ -56,17 +56,17 @@ export function connectionFromPromisedArraySlice<T>(
5656/**
5757 * Creates the cursor string from an offset.
5858 */
59- export function offsetToCursor ( offset : number ) : ConnectionCursor ;
59+ export declare function offsetToCursor ( offset : number ) : ConnectionCursor ;
6060
6161/**
6262 * Extracts the offset from the cursor string.
6363 */
64- export function cursorToOffset ( cursor : ConnectionCursor ) : number ;
64+ export declare function cursorToOffset ( cursor : ConnectionCursor ) : number ;
6565
6666/**
6767 * Return the cursor associated with an object in an array.
6868 */
69- export function cursorForObjectInConnection < T > (
69+ export declare function cursorForObjectInConnection < T > (
7070 data : ReadonlyArray < T > ,
7171 object : T ,
7272) : ConnectionCursor | null ;
@@ -76,7 +76,7 @@ export function cursorForObjectInConnection<T>(
7676 * to use; if the cursor contains a valid offset, that will be used,
7777 * otherwise it will be the default.
7878 */
79- export function getOffsetWithDefault (
79+ export declare function getOffsetWithDefault (
8080 cursor : ConnectionCursor | null | undefined ,
8181 defaultOffset : number ,
8282) : number ;
0 commit comments