From 7854e10173d42b5788f23ef63f0203685f43dbb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D1=97=D0=BB=20=D0=93=D1=80=D0=B8?= =?UTF-8?q?=D0=B3=D0=BE=D1=80=27=D1=94=D0=B2?= Date: Thu, 19 Jun 2025 05:48:23 +0300 Subject: [PATCH] Rename incorrectly named .d.ts files These files do not describe existing JS types and instead define their own. Usage of .d.ts extension prevents these types from being emitted when using emitDeclarationOnly, which affects generation of typings for mod development. --- src/js/game/{entity_components.d.ts => entity_components.ts} | 0 src/js/game/hud/{hud_parts.d.ts => hud_parts.ts} | 0 src/js/mods/{mod_metadata.d.ts => mod_metadata.ts} | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename src/js/game/{entity_components.d.ts => entity_components.ts} (100%) rename src/js/game/hud/{hud_parts.d.ts => hud_parts.ts} (100%) rename src/js/mods/{mod_metadata.d.ts => mod_metadata.ts} (88%) diff --git a/src/js/game/entity_components.d.ts b/src/js/game/entity_components.ts similarity index 100% rename from src/js/game/entity_components.d.ts rename to src/js/game/entity_components.ts diff --git a/src/js/game/hud/hud_parts.d.ts b/src/js/game/hud/hud_parts.ts similarity index 100% rename from src/js/game/hud/hud_parts.d.ts rename to src/js/game/hud/hud_parts.ts diff --git a/src/js/mods/mod_metadata.d.ts b/src/js/mods/mod_metadata.ts similarity index 88% rename from src/js/mods/mod_metadata.d.ts rename to src/js/mods/mod_metadata.ts index 451d1916..cd1987d0 100644 --- a/src/js/mods/mod_metadata.d.ts +++ b/src/js/mods/mod_metadata.ts @@ -33,6 +33,6 @@ export interface ModInfo { mod: Mod; } -export interface FrozenModMetadata extends Readonly { +export interface FrozenModMetadata extends Readonly> { authors: ReadonlyArray>; }