Skip to content

Commit 8605a90

Browse files
committed
fix: default generics
1 parent 552f8d4 commit 8605a90

9 files changed

Lines changed: 7 additions & 13 deletions

File tree

src/payloads/Achievement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export enum AchievementId {
1313
BotKiller = 'BOT_KILLER',
1414
}
1515

16-
export interface APIAchievement<IDType> {
16+
export interface APIAchievement<IDType = string> {
1717
_id: IDType;
1818
userId: string;
1919
achievement: AchievementId;

src/payloads/Channel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export interface CountingChannelNotifications {
104104
milestones: boolean;
105105
}
106106

107-
export interface APICountingChannel<IDType> {
107+
export interface APICountingChannel<IDType = string> {
108108
_id: IDType;
109109
/**
110110
* If the channel is enabled.

src/payloads/ChannelModifiers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Modifiers } from '../utils/BaseModifier.js';
22

3-
export interface APICountingChannelModifiers<IDType> {
3+
export interface APICountingChannelModifiers<IDType = string> {
44
/**
55
* The ObjectID of the channel modifiers
66
*/

src/payloads/Guild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { LanguageCode } from '../utils/index.js';
22

3-
export interface APICountingGuild<IDType> {
3+
export interface APICountingGuild<IDType = string> {
44
/**
55
* The ObjectID of the guild
66
*/

src/payloads/Status.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/payloads/Summary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export interface APICountingSummary<IDType> {
1+
export interface APICountingSummary<IDType = string> {
22
_id: IDType;
33
/**
44
* If the summary is the current one

src/payloads/User.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ItemString } from '../utils/items.js';
22

3-
export interface APICountingUser<IDType> {
3+
export interface APICountingUser<IDType = string> {
44
/**
55
* The ObjectID of the user
66
*/

src/payloads/UserModifiers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Modifiers } from '../utils/BaseModifier.js';
22

3-
export interface APICountingUserModifiers<IDType> {
3+
export interface APICountingUserModifiers<IDType = string> {
44
/**
55
* The ObjectID of the user modifiers
66
*/

src/payloads/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ export * from './Achievement.js';
22
export * from './Channel.js';
33
export * from './ChannelModifiers.js';
44
export * from './Guild.js';
5-
export * from './Status.js';
65
export * from './Summary.js';
76
export * from './User.js';
87
export * from './UserModifiers.js';

0 commit comments

Comments
 (0)