@ng-doc/builder
Version:
<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>
17 lines (16 loc) • 650 B
TypeScript
import { OperatorFunction } from 'rxjs';
import { BuilderState, CacheStrategy } from '../types';
/**
* Disables cache for all builders.
*/
export declare function disableCache(): void;
export declare const PENDING_CACHE: Array<() => void>;
/**
* Handles cache provided cache strategy.
* It will skip or restore the builder based on the strategy on the first run and
* update the cache on every next run.
* @param id
* @param strategy - Cache strategy
* @param valid
*/
export declare function handleCacheStrategy<T, TData>(id: string, strategy?: CacheStrategy<TData, T>, valid?: boolean): OperatorFunction<BuilderState<T>, BuilderState<T>>;