mirror of
https://github.com/versia-pub/api.git
synced 2025-12-06 08:28:19 +01:00
fix(client): 🏷️ Fix type issues
This commit is contained in:
parent
1a4890df2a
commit
503f4396ef
|
|
@ -1507,7 +1507,7 @@ export class LysandClient extends BaseClient {
|
|||
): Promise<Output<Relationship>> {
|
||||
return this.getRelationships([id], options, extra).then((r) => ({
|
||||
...r,
|
||||
data: r.data[0],
|
||||
data: r.data[0] as Relationship,
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import type {
|
|||
InstanceRule,
|
||||
} from "./types/instance";
|
||||
import type { List, RepliesPolicy } from "./types/list";
|
||||
import type { LysandRole, RolePermission } from "./types/lysand";
|
||||
import { type LysandRole, RolePermission } from "./types/lysand";
|
||||
import type { Marker } from "./types/marker";
|
||||
import type { Mention } from "./types/mention";
|
||||
import type { Notification, NotificationType } from "./types/notification";
|
||||
|
|
@ -90,7 +90,6 @@ export type {
|
|||
RepliesPolicy,
|
||||
Report,
|
||||
Results,
|
||||
RolePermission,
|
||||
ScheduledStatus,
|
||||
Source,
|
||||
Stats,
|
||||
|
|
@ -104,3 +103,5 @@ export type {
|
|||
Token,
|
||||
URLs,
|
||||
};
|
||||
|
||||
export { RolePermission };
|
||||
|
|
|
|||
Loading…
Reference in a new issue