DefinitelyTyped/types/ol/TileCache.d.ts
Rifa'i M. Hanif 1dcb8e6da3 [@types/ol] Update to openlayers 5.3 (#35445)
* [@types/ol] Update to openlayers 5.3

* [@types/ol] fix case sensitive

* [@types/ol] fix case sensitive
2019-05-24 13:42:05 -07:00

16 lines
816 B
TypeScript

import { EventsKey } from 'ol/events';
import Event from 'ol/events/Event';
import LRUCache from 'ol/structs/LRUCache';
import TileRange from 'ol/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: ((param0: any) => void)): EventsKey | EventsKey[];
once(type: string | string[], listener: ((param0: any) => void)): EventsKey | EventsKey[];
un(type: string | string[], listener: ((param0: any) => void)): void;
on(type: 'change', listener: (evt: Event) => void): EventsKey;
once(type: 'change', listener: (evt: Event) => void): EventsKey;
un(type: 'change', listener: (evt: Event) => void): void;
}