pl-api: lint

Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
Nicole Mikołajczyk
2025-03-28 23:25:47 +01:00
parent 3e624f3564
commit ae892536ac
2 changed files with 7 additions and 6 deletions

View File

@ -79,6 +79,7 @@ import {
} from './entities';
import { circleSchema } from './entities/circle';
import { type GroupedNotificationsResults, groupedNotificationsResultsSchema, type NotificationGroup } from './entities/grouped-notifications-results';
import { ShoutMessage, shoutMessageSchema } from './entities/shout-message';
import { filteredArray } from './entities/utils';
import { AKKOMA, type Features, getFeatures, GOTOSOCIAL, MITRA, PIXELFED } from './features';
import request, { getNextLink, getPrevLink, type RequestBody, type RequestMeta } from './request';
@ -251,7 +252,6 @@ import type {
GetTrendingTags,
} from './params/trends';
import type { PaginatedResponse } from './responses';
import { ShoutMessage, shoutMessageSchema } from './entities/shout-message';
const GROUPED_TYPES = ['favourite', 'reblog', 'emoji_reaction', 'event_reminder', 'participation_accepted', 'participation_request'];
@ -289,7 +289,7 @@ class PlApiClient {
#shoutSocket?: {
message: (text: string) => void;
close: () => void;
}
};
/**
*
@ -2782,7 +2782,6 @@ class PlApiClient {
const ws = new WebSocket(path);
ws.onmessage = (event) => {
// @eslint-disable-next-line @typescript-eslint/no-unused-vars
const [_, __, ___, type, payload] = JSON.parse(event.data as string);
if (type === 'new_msg') {
const message = v.parse(payload, shoutMessageSchema);
@ -2807,7 +2806,7 @@ class PlApiClient {
},
};
},
}
};
public readonly notifications = {
/**