pl-api: enable consistent-type-imports rule
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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 = {
|
||||
|
||||
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user