diff --git a/assets/openapi.json b/assets/openapi.json index 85292bc..13e0249 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -2489,7 +2489,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -2698,7 +2698,7 @@ }, "required": [ "ToGuildSource", - "__@annotationsKey@12306", + "__@annotationsKey@12300", "bans", "channel_ordering", "channels", @@ -7854,7 +7854,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -7865,7 +7865,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "channel", "embeds", "flags", @@ -8042,7 +8042,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -8053,7 +8053,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "created_at", "flags", "id", @@ -8110,7 +8110,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -8121,7 +8121,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "channel", "channel_id", "closed", @@ -8321,7 +8321,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -8332,7 +8332,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "bio", "bot", "connected_accounts", @@ -8430,7 +8430,7 @@ "session_nickname": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -8441,7 +8441,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "activities", "client_info", "client_status", @@ -8733,7 +8733,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -8744,7 +8744,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "from", "from_id", "id", @@ -8829,7 +8829,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -8840,7 +8840,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "external_id", "id", "name", @@ -9043,7 +9043,7 @@ "type": "boolean", "default": true }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -9054,7 +9054,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "afk_timeout", "allow_accessibility_detection", "animate_emoji", @@ -9169,7 +9169,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -9180,7 +9180,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "counter", "id", "key_id", @@ -9338,7 +9338,7 @@ "flags": { "$ref": "#/components/schemas/ThreadMemberFlags" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -9349,7 +9349,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "channel", "flags", "id", @@ -9454,7 +9454,7 @@ "type": "integer", "default": 0 }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -9465,7 +9465,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "banner", "bio", "communication_disabled_until", @@ -9710,7 +9710,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -9721,7 +9721,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "bans", "channel_ordering", "channels", @@ -9776,7 +9776,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -9787,7 +9787,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "executor", "executor_id", "guild", @@ -9857,7 +9857,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -9868,7 +9868,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "color", "colors", "flags", @@ -9941,7 +9941,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -9952,7 +9952,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "code", "created_at", "creator", @@ -10010,7 +10010,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10021,7 +10021,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "animated", "available", "groups", @@ -10078,7 +10078,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10089,7 +10089,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "format_type", "id", "name", @@ -10124,7 +10124,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10135,7 +10135,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "id", "name", "stickers" @@ -10216,7 +10216,7 @@ "flags": { "type": "integer" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10227,7 +10227,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "channel", "channel_id", "code", @@ -10301,7 +10301,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10312,7 +10312,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "channel", "channel_id", "deaf", @@ -10387,7 +10387,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10398,7 +10398,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "application", "application_id", "avatar", @@ -10555,7 +10555,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10566,7 +10566,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "description", "discoverability_state", "discovery_eligibility_flags", @@ -10609,7 +10609,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10620,7 +10620,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "id", "members", "name", @@ -10658,7 +10658,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10669,7 +10669,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "id", "membership_state", "permissions", @@ -10949,7 +10949,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10960,7 +10960,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "badge_count", "channel", "channel_id", @@ -11047,7 +11047,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -11058,7 +11058,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "channel", "channel_id", "id", @@ -11099,7 +11099,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -11110,7 +11110,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "filename", "id", "message", @@ -13656,9 +13656,6 @@ "with": { "type": "boolean" }, - "remove": { - "type": "boolean" - }, "__@iterator@696": { "type": "boolean" }, @@ -13701,7 +13698,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -13712,7 +13709,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "code", "consumed", "expired", @@ -13823,7 +13820,7 @@ "icon": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -13834,7 +13831,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "id", "is_primary", "localizations", @@ -14212,7 +14209,7 @@ "link": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -14223,7 +14220,7 @@ } }, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "description", "icon", "id" diff --git a/assets/schemas.json b/assets/schemas.json index 75c9d90..9b3dd7b 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -2613,7 +2613,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -2831,7 +2831,7 @@ "additionalProperties": false, "required": [ "ToGuildSource", - "__@annotationsKey@12306", + "__@annotationsKey@12300", "bans", "channel_ordering", "channels", @@ -8333,7 +8333,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -8345,7 +8345,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "channel", "embeds", "flags", @@ -8527,7 +8527,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -8539,7 +8539,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "created_at", "flags", "id", @@ -8598,7 +8598,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -8610,7 +8610,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "channel", "channel_id", "closed", @@ -8811,7 +8811,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -8823,7 +8823,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "bio", "bot", "connected_accounts", @@ -8922,7 +8922,7 @@ "session_nickname": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -8934,7 +8934,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "activities", "client_info", "client_status", @@ -9235,7 +9235,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -9247,7 +9247,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "from", "from_id", "id", @@ -9334,7 +9334,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -9346,7 +9346,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "external_id", "id", "name", @@ -9552,7 +9552,7 @@ "type": "boolean", "default": true }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -9564,7 +9564,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "afk_timeout", "allow_accessibility_detection", "animate_emoji", @@ -9692,7 +9692,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -9704,7 +9704,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "counter", "id", "key_id", @@ -9885,7 +9885,7 @@ "flags": { "$ref": "#/definitions/ThreadMemberFlags" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -9897,7 +9897,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "channel", "flags", "id", @@ -10003,7 +10003,7 @@ "type": "integer", "default": 0 }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10015,7 +10015,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "banner", "bio", "communication_disabled_until", @@ -10269,7 +10269,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10281,7 +10281,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "bans", "channel_ordering", "channels", @@ -10337,7 +10337,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10349,7 +10349,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "executor", "executor_id", "guild", @@ -10420,7 +10420,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10432,7 +10432,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "color", "colors", "flags", @@ -10508,7 +10508,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10520,7 +10520,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "code", "created_at", "creator", @@ -10579,7 +10579,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10591,7 +10591,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "animated", "available", "groups", @@ -10649,7 +10649,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10661,7 +10661,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "format_type", "id", "name", @@ -10697,7 +10697,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10709,7 +10709,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "id", "name", "stickers" @@ -10793,7 +10793,7 @@ "flags": { "type": "integer" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10805,7 +10805,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "channel", "channel_id", "code", @@ -10880,7 +10880,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10892,7 +10892,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "channel", "channel_id", "deaf", @@ -10968,7 +10968,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -10980,7 +10980,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "application", "application_id", "avatar", @@ -11139,7 +11139,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -11151,7 +11151,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "description", "discoverability_state", "discovery_eligibility_flags", @@ -11195,7 +11195,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -11207,7 +11207,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "id", "members", "name", @@ -11246,7 +11246,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -11258,7 +11258,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "id", "membership_state", "permissions", @@ -11559,7 +11559,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -11571,7 +11571,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "badge_count", "channel", "channel_id", @@ -11663,7 +11663,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -11675,7 +11675,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "channel", "channel_id", "id", @@ -11717,7 +11717,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -11729,7 +11729,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "filename", "id", "message", @@ -14450,9 +14450,6 @@ "with": { "type": "boolean" }, - "remove": { - "type": "boolean" - }, "__@iterator@696": { "type": "boolean" }, @@ -14496,7 +14493,7 @@ "id": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -14508,7 +14505,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "code", "consumed", "expired", @@ -14634,7 +14631,7 @@ "icon": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -14646,7 +14643,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "id", "is_primary", "localizations", @@ -15053,7 +15050,7 @@ "link": { "type": "string" }, - "__@annotationsKey@12306": { + "__@annotationsKey@12300": { "type": "object", "additionalProperties": { "type": "array", @@ -15065,7 +15062,7 @@ }, "additionalProperties": false, "required": [ - "__@annotationsKey@12306", + "__@annotationsKey@12300", "description", "icon", "id" diff --git a/src/util/entities/Channel.ts b/src/util/entities/Channel.ts index 57960ec..9c7ddb5 100644 --- a/src/util/entities/Channel.ts +++ b/src/util/entities/Channel.ts @@ -197,7 +197,7 @@ skipEventEmit?: boolean; skipNameChecks?: boolean; }, - ) { + ): Promise { if (!opts?.skipPermissionCheck) { // Always check if user has permission first const permissions = await getPermission(user_id, channel.guild_id); @@ -281,7 +281,8 @@ // total_message_sent: 0, }; - const ret = Channel.create(channel); + // TODO: figure out why the generic is required here + const ret = Channel.create(channel); await Promise.all([ ret.save(), diff --git a/src/util/util/extensions/Array.test.ts b/src/util/util/extensions/Array.test.ts deleted file mode 100644 index 6984dfd..0000000 --- a/src/util/util/extensions/Array.test.ts +++ /dev/null @@ -1,9 +0,0 @@ -import moduleAlias from "module-alias"; -moduleAlias(); -import "./Array"; -import { describe, it } from "node:test"; -import assert from "node:assert/strict"; - -describe("Array extensions", () => { - // -}); diff --git a/src/util/util/extensions/Array.ts b/src/util/util/extensions/Array.ts index f17e865..f9cb2fc 100644 --- a/src/util/util/extensions/Array.ts +++ b/src/util/util/extensions/Array.ts @@ -16,14 +16,6 @@ along with this program. If not, see . */ -declare global { - interface Array { - /** - * @deprecated never use, idk why but I can't get rid of this without errors - */ - remove(h: T): never; - } -} /* https://stackoverflow.com/a/50636286 */ export function arrayPartition(array: T[], filter: (elem: T) => boolean): [T[], T[]] { const pass: T[] = [], @@ -38,5 +30,3 @@ array.splice(index, 1); } } - -// register extensions