From 0e4a4aef8a3012c51d93883cd13b30033b690b61 Mon Sep 17 00:00:00 2001 From: Arthur Harduim Date: Wed, 3 Dec 2025 22:33:39 -0300 Subject: [PATCH 1/2] Fix typo in comments for clarity in global type definitions --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 326c76525..b9cafc06f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,8 +3,8 @@ import { ErrorMapper } from "utils/ErrorMapper"; declare global { /* Example types, expand on these or remove them and add your own. - Note: Values, properties defined here do no fully *exist* by this type definiton alone. - You must also give them an implemention if you would like to use them. (ex. actually setting a `role` property in a Creeps memory) + Note: Values, properties defined here do no fully *exist* by this type definition alone. + You must also give them an implementation if you would like to use them. (ex. actually setting a `role` property in a Creeps memory) Types added in this `global` block are in an ambient, global context. This is needed because `main.ts` is a module file (uses import or export). Interfaces matching on name from @types/screeps will be merged. This is how you can extend the 'built-in' interfaces from @types/screeps. From ce6e6a31da55282cc1f26f32942bb7a4f44c10c2 Mon Sep 17 00:00:00 2001 From: Arthur Harduim Date: Wed, 3 Dec 2025 22:43:54 -0300 Subject: [PATCH 2/2] Fix: typo --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index b9cafc06f..aca95d2d2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -22,7 +22,7 @@ declare global { } } -// Syntax for adding proprties to `global` (ex "global.log") +// Syntax for adding properties to `global` (ex "global.log") declare const global: { log: any; }