mapcomplete/Logic/Tags/TagsFilter.ts
2021-04-19 18:17:26 +02:00

21 lines
571 B
TypeScript

export abstract class TagsFilter {
abstract asOverpass(): string[]
abstract isUsableAsAnswer(): boolean;
abstract isEquivalent(other: TagsFilter): boolean;
abstract matchesProperties(properties: any): boolean;
abstract asHumanString(linkToWiki: boolean, shorten: boolean, properties: any);
abstract usedKeys(): string[];
/**
* Converts the tagsFilter into a list of key-values that should be uploaded to OSM.
* Throws an error if not applicable
*/
abstract asChange(properties:any): {k: string, v:string}[]
}