Add comments

This commit is contained in:
Pieter Vander Vennet 2022-11-14 00:45:23 +01:00
parent f7953e46cf
commit eba36af657

View file

@ -136,6 +136,11 @@ export default class Wikidata {
UIEventSource<{ success: WikidataResponse } | { error: any }> UIEventSource<{ success: WikidataResponse } | { error: any }>
>() >()
/**
* Same as LoadWikidataEntry, but wrapped into a UIEventSource
* @param value
* @constructor
*/
public static LoadWikidataEntry( public static LoadWikidataEntry(
value: string | number value: string | number
): UIEventSource<{ success: WikidataResponse } | { error: any }> { ): UIEventSource<{ success: WikidataResponse } | { error: any }> {
@ -186,7 +191,7 @@ export default class Wikidata {
} . } .
?label wikibase:apiOutput mwapi:label . ?label wikibase:apiOutput mwapi:label .
?description wikibase:apiOutput "@description" . ?description wikibase:apiOutput "@description" .
} }
${instanceOf} ${instanceOf}
${minusPhrases.join("\n ")} ${minusPhrases.join("\n ")}
} ORDER BY ASC(?num) LIMIT ${options.maxCount ?? 20}` } ORDER BY ASC(?num) LIMIT ${options.maxCount ?? 20}`