Add sitelink object

This commit is contained in:
Kamontat Chantrachirathumrong
2018-11-28 15:09:40 +01:00
committed by GitHub
parent d5acd49750
commit 22e9366630
+12
View File
@@ -0,0 +1,12 @@
import { WikidataSite } from "wikidata-sdk";
export type WikidataSiteLink = { [Key in WikidataSite]: { site: Key; title: string; badges: string[] } };
export type WikidataSiteLinkSimplify = { [key in WikidataSite]: string };
export type WikidataSiteLinkWithUrlSimplify = {
[key in WikidataSite]: {
title: string;
url: string;
}
};