DefinitelyTyped/types/ol/TileCache.d.ts
2020-03-20 11:38:49 -04:00

20 lines
992 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();
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;
}