From 503f4396ef3b7e101d9c306354ae9b8c5dd7457f Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Wed, 19 Jun 2024 13:44:52 -1000 Subject: [PATCH] fix(client): :label: Fix type issues --- client/lysand/lysand.ts | 2 +- client/types.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/lysand/lysand.ts b/client/lysand/lysand.ts index f1a2678..d952d81 100644 --- a/client/lysand/lysand.ts +++ b/client/lysand/lysand.ts @@ -1507,7 +1507,7 @@ export class LysandClient extends BaseClient { ): Promise> { return this.getRelationships([id], options, extra).then((r) => ({ ...r, - data: r.data[0], + data: r.data[0] as Relationship, })); } diff --git a/client/types.ts b/client/types.ts index 212e432..a15c068 100644 --- a/client/types.ts +++ b/client/types.ts @@ -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 };