forked from mirror/misskey
refactor(ApQuestionService.ts
): function return type
This commit is contained in:
parent
630078f92e
commit
afe16d702c
@ -68,7 +68,7 @@ export class ApQuestionService {
|
|||||||
* @returns true if updated
|
* @returns true if updated
|
||||||
*/
|
*/
|
||||||
@bindThis
|
@bindThis
|
||||||
public async updateQuestion(value: string | IObject, resolver?: Resolver) {
|
public async updateQuestion(value: string | IObject, resolver?: Resolver): Promise<boolean> {
|
||||||
const uri = typeof value === 'string' ? value : value.id;
|
const uri = typeof value === 'string' ? value : value.id;
|
||||||
if (uri == null) throw new Error(''); // TODO
|
if (uri == null) throw new Error(''); // TODO
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user