eslintrc-tsnocheck

This commit is contained in:
Kagami Sascha Rosylight
2023-07-31 03:56:33 +02:00
parent fa03f61529
commit 2d3269273f
9 changed files with 50 additions and 7 deletions

View File

@@ -2254,7 +2254,8 @@ declare namespace entities {
Invite,
InviteLimit,
UserSorting,
OriginType
OriginType,
Role
}
}
export { entities }
@@ -2651,6 +2652,18 @@ type PageEvent = {
// @public (undocumented)
export const permissions: string[];
// @public (undocumented)
type Role = {
id: string;
name: string;
color: string | null;
iconUrl: string | null;
description: string;
isModerator: boolean;
isAdministrator: boolean;
displayOrder: number;
};
// @public (undocumented)
type ServerInfo = {
machine: string;
@@ -2762,7 +2775,7 @@ type UserDetailed = UserLite & {
lang: string | null;
lastFetchedAt?: DateString;
location: string | null;
movedTo: string;
movedTo: string | null;
notesCount: number;
pinnedNoteIds: ID[];
pinnedNotes: Note[];
@@ -2770,6 +2783,7 @@ type UserDetailed = UserLite & {
pinnedPageId: string | null;
publicReactions: boolean;
securityKeys: boolean;
roles: Role[];
twoFactorEnabled: boolean;
updatedAt: DateString | null;
uri: string | null;

View File

@@ -57,7 +57,7 @@ export type UserDetailed = UserLite & {
lang: string | null;
lastFetchedAt?: DateString;
location: string | null;
movedTo: string;
movedTo: string | null;
notesCount: number;
pinnedNoteIds: ID[];
pinnedNotes: Note[];
@@ -65,6 +65,7 @@ export type UserDetailed = UserLite & {
pinnedPageId: string | null;
publicReactions: boolean;
securityKeys: boolean;
roles: Role[],
twoFactorEnabled: boolean;
updatedAt: DateString | null;
uri: string | null;
@@ -546,3 +547,14 @@ export type UserSorting =
| '+updatedAt'
| '-updatedAt';
export type OriginType = 'combined' | 'local' | 'remote';
export type Role = {
id: string;
name: string;
color: string | null;
iconUrl: string | null;
description: string;
isModerator: boolean;
isAdministrator: boolean;
displayOrder: number;
}