Skip to content

Commit

Permalink
fix(client): 🏷️ Fix type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
CPlusPatch committed Jun 19, 2024
1 parent 1a4890d commit 503f439
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/lysand/lysand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}));
}

Expand Down
5 changes: 3 additions & 2 deletions client/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -90,7 +90,6 @@ export type {
RepliesPolicy,
Report,
Results,
RolePermission,
ScheduledStatus,
Source,
Stats,
Expand All @@ -104,3 +103,5 @@ export type {
Token,
URLs,
};

export { RolePermission };

0 comments on commit 503f439

Please sign in to comment.