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>> {
|
): Promise<Output<Relationship>> {
|
||||||
return this.getRelationships([id], options, extra).then((r) => ({
|
return this.getRelationships([id], options, extra).then((r) => ({
|
||||||
...r,
|
...r,
|
||||||
data: r.data[0],
|
data: r.data[0] as Relationship,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ import type {
|
||||||
InstanceRule,
|
InstanceRule,
|
||||||
} from "./types/instance";
|
} from "./types/instance";
|
||||||
import type { List, RepliesPolicy } from "./types/list";
|
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 { Marker } from "./types/marker";
|
||||||
import type { Mention } from "./types/mention";
|
import type { Mention } from "./types/mention";
|
||||||
import type { Notification, NotificationType } from "./types/notification";
|
import type { Notification, NotificationType } from "./types/notification";
|
||||||
|
|
@ -90,7 +90,6 @@ export type {
|
||||||
RepliesPolicy,
|
RepliesPolicy,
|
||||||
Report,
|
Report,
|
||||||
Results,
|
Results,
|
||||||
RolePermission,
|
|
||||||
ScheduledStatus,
|
ScheduledStatus,
|
||||||
Source,
|
Source,
|
||||||
Stats,
|
Stats,
|
||||||
|
|
@ -104,3 +103,5 @@ export type {
|
||||||
Token,
|
Token,
|
||||||
URLs,
|
URLs,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export { RolePermission };
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue