DefinitelyTyped/types/ol/TileCache.d.ts
2020-01-06 13:12:33 -08:00

20 lines
1018 B
TypeScript

import { EventsKey } from './events';
import BaseEvent from './events/Event';
import LRUCache from './structs/LRUCache';
import TileRange from './TileRange';
export default class TileCache extends LRUCache<any> {
constructor(opt_highWaterMark?: number);
expireCache(usedTiles: { [key: string]: TileRange }): void;
pruneExceptNewestZ(): void;
on(type: string | string[], listener: (p0: any) => void): EventsKey | EventsKey[];
once(type: string | string[], listener: (p0: any) => void): EventsKey | EventsKey[];
un(type: string | string[], listener: (p0: any) => void): void;
on(type: 'change', listener: (evt: BaseEvent) => void): EventsKey;
once(type: 'change', listener: (evt: BaseEvent) => void): EventsKey;
un(type: 'change', listener: (evt: BaseEvent) => void): void;
on(type: 'error', listener: (evt: BaseEvent) => void): EventsKey;
once(type: 'error', listener: (evt: BaseEvent) => void): EventsKey;
un(type: 'error', listener: (evt: BaseEvent) => void): void;
}