fix(client): 🏷️ Fix type issues

This commit is contained in:
Jesse Wierzbinski 2024-06-19 13:44:52 -10:00
parent 1a4890df2a
commit 503f4396ef
No known key found for this signature in database
2 changed files with 4 additions and 3 deletions

View file

@ -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,
}));
}

View file

@ -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 };