Update devDependencies (non-major) (#37074)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ChaosExAnima <ChaosExAnima@users.noreply.github.com>
This commit is contained in:
1 parent
a9e228361c
commit
2984f377e8
11 files changed
+163
-141
No files matched your search
@@ -42,10 +42,9 @@ const AccountRoleFactory = ImmutableRecord<AccountRoleShape>({
|
||||
});
|
||||
|
||||
// Account
|
||||
export interface AccountShape
|
||||
extends Required<
|
||||
Omit<ApiAccountJSON, 'emojis' | 'fields' | 'roles' | 'moved' | 'url'>
|
||||
> {
|
||||
export interface AccountShape extends Required<
|
||||
Omit<ApiAccountJSON, 'emojis' | 'fields' | 'roles' | 'moved' | 'url'>
|
||||
> {
|
||||
emojis: ImmutableList<CustomEmoji>;
|
||||
fields: ImmutableList<AccountField>;
|
||||
roles: ImmutableList<AccountRole>;
|
||||
|
||||
@@ -14,20 +14,24 @@ import type { ApiReportJSON } from 'mastodon/api_types/reports';
|
||||
// This corresponds to the max length of `group.sampleAccountIds`
|
||||
export const NOTIFICATIONS_GROUP_MAX_AVATARS = 8;
|
||||
|
||||
interface BaseNotificationGroup
|
||||
extends Omit<BaseNotificationGroupJSON, 'sample_account_ids'> {
|
||||
interface BaseNotificationGroup extends Omit<
|
||||
BaseNotificationGroupJSON,
|
||||
'sample_account_ids'
|
||||
> {
|
||||
sampleAccountIds: string[];
|
||||
partial: boolean;
|
||||
}
|
||||
|
||||
interface BaseNotificationWithStatus<Type extends NotificationWithStatusType>
|
||||
extends BaseNotificationGroup {
|
||||
interface BaseNotificationWithStatus<
|
||||
Type extends NotificationWithStatusType,
|
||||
> extends BaseNotificationGroup {
|
||||
type: Type;
|
||||
statusId: string | undefined;
|
||||
}
|
||||
|
||||
interface BaseNotification<Type extends NotificationType>
|
||||
extends BaseNotificationGroup {
|
||||
interface BaseNotification<
|
||||
Type extends NotificationType,
|
||||
> extends BaseNotificationGroup {
|
||||
type: Type;
|
||||
}
|
||||
|
||||
@@ -53,26 +57,25 @@ export type AccountWarningAction =
|
||||
| 'sensitive'
|
||||
| 'silence'
|
||||
| 'suspend';
|
||||
export interface AccountWarning
|
||||
extends Omit<ApiAccountWarningJSON, 'target_account'> {
|
||||
export interface AccountWarning extends Omit<
|
||||
ApiAccountWarningJSON,
|
||||
'target_account'
|
||||
> {
|
||||
targetAccountId: string;
|
||||
}
|
||||
|
||||
export interface NotificationGroupModerationWarning
|
||||
extends BaseNotification<'moderation_warning'> {
|
||||
export interface NotificationGroupModerationWarning extends BaseNotification<'moderation_warning'> {
|
||||
moderationWarning: AccountWarning;
|
||||
}
|
||||
|
||||
type AccountRelationshipSeveranceEvent =
|
||||
ApiAccountRelationshipSeveranceEventJSON;
|
||||
export interface NotificationGroupSeveredRelationships
|
||||
extends BaseNotification<'severed_relationships'> {
|
||||
export interface NotificationGroupSeveredRelationships extends BaseNotification<'severed_relationships'> {
|
||||
event: AccountRelationshipSeveranceEvent;
|
||||
}
|
||||
|
||||
type AnnualReportEvent = ApiAnnualReportEventJSON;
|
||||
export interface NotificationGroupAnnualReport
|
||||
extends BaseNotification<'annual_report'> {
|
||||
export interface NotificationGroupAnnualReport extends BaseNotification<'annual_report'> {
|
||||
annualReport: AnnualReportEvent;
|
||||
}
|
||||
|
||||
@@ -80,8 +83,7 @@ interface Report extends Omit<ApiReportJSON, 'target_account'> {
|
||||
targetAccountId: string;
|
||||
}
|
||||
|
||||
export interface NotificationGroupAdminReport
|
||||
extends BaseNotification<'admin.report'> {
|
||||
export interface NotificationGroupAdminReport extends BaseNotification<'admin.report'> {
|
||||
report: Report;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import type { ApiNotificationRequestJSON } from 'mastodon/api_types/notifications';
|
||||
|
||||
export interface NotificationRequest
|
||||
extends Omit<ApiNotificationRequestJSON, 'account' | 'notifications_count'> {
|
||||
export interface NotificationRequest extends Omit<
|
||||
ApiNotificationRequestJSON,
|
||||
'account' | 'notifications_count'
|
||||
> {
|
||||
account_id: string;
|
||||
notifications_count: number;
|
||||
}
|
||||
|
||||
@@ -25,8 +25,10 @@ export function createPollOptionTranslationFromServerJSON(translation: {
|
||||
} as PollOptionTranslation;
|
||||
}
|
||||
|
||||
export interface Poll
|
||||
extends Omit<ApiPollJSON, 'emojis' | 'options' | 'own_votes'> {
|
||||
export interface Poll extends Omit<
|
||||
ApiPollJSON,
|
||||
'emojis' | 'options' | 'own_votes'
|
||||
> {
|
||||
emojis: CustomEmoji[];
|
||||
options: PollOption[];
|
||||
own_votes?: number[];
|
||||
|
||||
Reference in new issue
Block a user