pl-api: enable consistent-type-imports rule

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-27 01:17:07 +01:00
parent acaf8deb33
commit 2fc00472bf
9 changed files with 24 additions and 14 deletions

View File

@ -18,6 +18,7 @@ import type {
GetUnreadNotificationGroupCountParams,
} from '../params/grouped-notifications';
import type { PaginatedResponse } from '../responses';
import type { notifications } from './notifications';
type EmptyObject = Record<string, never>;
@ -104,7 +105,7 @@ const _groupNotifications = (
*/
const groupedNotifications = (
client: PlApiBaseClient & {
notifications: ReturnType<typeof import('./notifications').notifications>;
notifications: ReturnType<typeof notifications>;
},
) => {
const category = {

View File

@ -25,11 +25,12 @@ import type {
UpdateBookmarkFolderParams,
} from '../params/my-account';
import type { PaginatedResponse } from '../responses';
import type { accounts } from './accounts';
type EmptyObject = Record<string, never>;
const paginatedIceshrimpAccountsList = async <T>(
client: PlApiBaseClient & { accounts: ReturnType<typeof import('./accounts').accounts> },
client: PlApiBaseClient & { accounts: ReturnType<typeof accounts> },
url: string,
fn: (body: T) => Array<string>,
): Promise<PaginatedResponse<Account>> => {
@ -51,9 +52,7 @@ const paginatedIceshrimpAccountsList = async <T>(
};
};
const myAccount = (
client: PlApiBaseClient & { accounts: ReturnType<typeof import('./accounts').accounts> },
) => ({
const myAccount = (client: PlApiBaseClient & { accounts: ReturnType<typeof accounts> }) => ({
/**
* View bookmarked statuses
* Statuses the user has bookmarked.