Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions index.d.json.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export interface Tag2Link {
/** OSM tag key */
key: `Key:${string}`;
/** URL template or formatter URL: replace `$1` with the tag value */
url: string;
/** Source of this formatter URL */
source: `${'wikidata' | 'osm'}:P${number}`;
/** Rank or relative importance of this formatter URL */
rank: 'preferred' | 'normal' | 'deprecated';
}

declare const exports: Tag2Link[];

export default exports;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"url-template"
],
"main": "index.json",
"types": "index.d.json.ts",
"scripts": {
"build": "npx ts-node build.ts"
},
Expand Down
Loading