Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
williamhorning committed Aug 17, 2024
1 parent c233e1b commit 54b14aa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/api/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ export interface socket_relationship_update {
/** user ban states */
export enum user_ban_state {
/** not banned */
none = "none",
none = 'none',
/** temporary restriction */
temporary_restriction = "temp_restriction",
temporary_restriction = 'temp_restriction',
/** permanent restriction */
permanent_restriction = "perm_restriction",
permanent_restriction = 'perm_restriction',
/** temporary ban */
temporary_ban = "temp_ban",
temporary_ban = 'temp_ban',
/** permanent ban */
permanent_ban = "perm_ban",
permanent_ban = 'perm_ban',
}

/** user ban information */
Expand Down Expand Up @@ -136,9 +136,9 @@ export interface socket_config_update extends socket_profile_update {
/** favorite chats */
favorited_chats?: string[];
/** permissions bitfield */
permissions?: number
permissions?: number;
/** ban information */
ban?: api_user_ban
ban?: api_user_ban;
}

/** access to the meower socket */
Expand Down Expand Up @@ -240,7 +240,7 @@ export class socket extends EventEmitter<{
});

this.on('cmd-delete_post', (packet) => {
const p = packet.val as { post_id: string; chat_id: string }
const p = packet.val as { post_id: string; chat_id: string };
this.emit('delete_message', p);
this.emit('delete_post', p);
});
Expand Down
7 changes: 6 additions & 1 deletion src/interfaces/post.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { type api_attachment, type api_emoji, is_api_attachment, is_api_emoji } from '../api/uploads.ts';
import {
type api_attachment,
type api_emoji,
is_api_attachment,
is_api_emoji,
} from '../api/uploads.ts';
import type { message_send_opts } from './chat.ts';

/** types of posts */
Expand Down

0 comments on commit 54b14aa

Please sign in to comment.