@livetiles/reach-plugin-types 0.4.0-preview.444 → 0.4.0-preview.447
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +8 -5
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -4344,7 +4344,10 @@ declare module "libs/reach/ui/common/src/common/paging/VerticalPager" {
|
|
|
4344
4344
|
declare module "libs/reach/ui/common/src/common/paging/useItemLoaderWithPreFetch" {
|
|
4345
4345
|
import { DependencyList } from 'react';
|
|
4346
4346
|
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
4347
|
-
export
|
|
4347
|
+
export interface ItemLoader<TItem, TTokenType> {
|
|
4348
|
+
(pageSize: number, token?: TTokenType): Promise<PaginatedList<TItem>>;
|
|
4349
|
+
}
|
|
4350
|
+
export function useItemLoaderWithPreFetch<TItem, TTokenType>(pageSize: number, handler: ItemLoader<TItem, TTokenType>, deps?: DependencyList): {
|
|
4348
4351
|
items: any[];
|
|
4349
4352
|
isInitialLoading: boolean;
|
|
4350
4353
|
isLoadingNextPage: boolean;
|
|
@@ -11362,17 +11365,17 @@ declare module "libs/reach/feature/content/src/stream/StreamList" {
|
|
|
11362
11365
|
export const StreamList: FC;
|
|
11363
11366
|
}
|
|
11364
11367
|
declare module "libs/reach/feature/content/src/stream/useNewsStreamDataLoader" {
|
|
11365
|
-
import {
|
|
11368
|
+
import { ItemLoader } from "libs/reach/ui/common/src/index";
|
|
11366
11369
|
import { NewsFilterDefinition } from "libs/reach/feature/content/src/index";
|
|
11367
11370
|
import { NewsStreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
|
|
11368
|
-
export function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string):
|
|
11371
|
+
export function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string): ItemLoader<NewsStreamItem, number>;
|
|
11369
11372
|
export const NEWS_QUERY: (includeAllItems: boolean, whereConditions?: string) => import("@apollo/client").DocumentNode;
|
|
11370
11373
|
}
|
|
11371
11374
|
declare module "libs/reach/feature/content/src/stream/useEventsStreamDataLoader" {
|
|
11372
|
-
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
11373
11375
|
import { EventStreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
|
|
11374
11376
|
import { EventFilterDefinition } from "libs/reach/feature/content/src/index";
|
|
11375
|
-
|
|
11377
|
+
import { ItemLoader } from "libs/reach/ui/common/src/index";
|
|
11378
|
+
export function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string): ItemLoader<EventStreamItem, number>;
|
|
11376
11379
|
export const EVENTS_QUERY: (includeAllItems: boolean, whereConditions?: string) => import("@apollo/client").DocumentNode;
|
|
11377
11380
|
}
|
|
11378
11381
|
declare module "libs/reach/feature/content/src/stream/index" {
|