0
0

Fix type annotations (#14071)

This commit is contained in:
woxtu 2024-06-23 01:00:12 +09:00 committed by GitHub
parent 2acbec6891
commit b269c43168
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,7 @@
import * as Misskey from 'misskey-js'; import * as Misskey from 'misskey-js';
import { url } from '@/config.js'; import { url } from '@/config.js';
export const acct = (user: misskey.Acct) => { export const acct = (user: Misskey.Acct) => {
return Misskey.acct.toString(user); return Misskey.acct.toString(user);
}; };
@ -14,6 +14,6 @@ export const userName = (user: Misskey.entities.User) => {
return user.name || user.username; return user.name || user.username;
}; };
export const userPage = (user: misskey.Acct, path?, absolute = false) => { export const userPage = (user: Misskey.Acct, path?: string, absolute = false) => {
return `${absolute ? url : ''}/@${acct(user)}${(path ? `/${path}` : '')}`; return `${absolute ? url : ''}/@${acct(user)}${(path ? `/${path}` : '')}`;
}; };