UNPKG

@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>

20 lines (19 loc) 584 B
import { Constructor } from '@ng-doc/core'; import { NgDocCacheAccessor } from './interfaces'; export interface NgDocCachedClass { __cachedProps?: Map<string, NgDocCacheAccessor<any, any>>; __cachedFiles?: Set<string>; } export declare class NgDocCache<T extends InstanceType<Constructor<{ id: string; }>> = InstanceType<Constructor<{ id: string; }>>> { readonly enabled: boolean; constructor(enabled: boolean); isCacheValid(cls: T): boolean; cache(cls: T): void; private createCache; private getCachedPaths; private getCachedProperties; }