update parameter type and docs

This commit is contained in:
Johann150 2022-09-02 14:28:55 +02:00
parent 0c5869805a
commit 375323bc25
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -35,10 +35,10 @@ export async function extractPollFromQuestion(source: string | IObject, resolver
/**
* Update votes of Question
* @param uri URI of AP Question object
* @param value AP Question object or its id
* @returns true if updated
*/
export async function updateQuestion(value: any) {
export async function updateQuestion(value: string | IObject) {
const uri = typeof value === 'string' ? value : value.id;
// URIがこのサーバーを指しているならスキップ