/** * Copyright (c) Microsoft Corporation. All rights reserved. */ /** * IAsyncPrefetchData is the contract to be met by async flushed variables * * @internal */ export interface IAsyncPrefetchData extends IPrefetchData { data: TData; } /** * IPrefetchData is the contract to be met by sync flushed variables * * @internal */ export interface IPrefetchData { [key: string]: unknown; } /** * IPrefetchUpdateOptions represent the options to configure prefetch updates * * @internal */ export interface IPrefetchUpdateOptions { /** * The callback to execute when Prefetch Data has been updated */ onDataUpdated: (prefetchedData: unknown | undefined) => void; /** * Indicates if onDataUpdated should fire when the prefetch data update did not change it's value */ shouldFireIfNoChange?: boolean; } /** * IPrefetchDataOptions represent the prefetch options * * @internal */ export interface IPrefetchOptions { /** * Indicates the alias of the component instance that is requesting this HttpRequest to be cached. */ alias: string; /** * Indicates the maximum wait time in ms for the prefetch data to arrive, else Promise.reject() will be called. * If undefined, defaults to 600 ms. */ maxWaitTime?: number; /** * Indicates the options to configure prefetch updates */ prefetchUpdateOptions?: IPrefetchUpdateOptions; /** * Indicates the interval in ms at which the provider will check if the flushed data arrived. * If undefined, defaults to 20ms. */ timeoutInterval?: number; } //# sourceMappingURL=IPrefetchData.d.ts.map