Skip to content

Commit 9638113

Browse files
authored
Merge pull request #102 from TogetherCrew/fix-interfaces
2 parents 27def6e + 075f668 commit 9638113

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@togethercrew.dev/db",
3-
"version": "2.4.95",
3+
"version": "2.4.96",
44
"description": "All interactions with DB",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

src/interfaces/Guild.interface.ts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ export interface IGuild {
55
guildId: Snowflake;
66
user: Snowflake;
77
name: string;
8-
selectedChannels?: [
9-
{
10-
channelId: Snowflake;
11-
channelName?: string;
12-
},
13-
];
8+
selectedChannels?: Array<{
9+
channelId: Snowflake;
10+
channelName?: string;
11+
}>;
1412
period?: Date;
1513
connectedAt: Date;
1614
isDisconnected: boolean;
@@ -21,12 +19,10 @@ export interface IGuild {
2119
}
2220

2321
export interface IGuildUpdateBody {
24-
selectedChannels?: [
25-
{
26-
channelId: Snowflake;
27-
channelName?: string;
28-
},
29-
];
22+
selectedChannels?: Array<{
23+
channelId: Snowflake;
24+
channelName?: string;
25+
}>;
3026
period?: Date;
3127
isDisconnected?: boolean;
3228
isInProgress?: boolean;

0 commit comments

Comments
 (0)