From 9330f4b636fedd5ace4f5f52eb368f90fd74563a Mon Sep 17 00:00:00 2001 From: Peter Hayman Date: Wed, 13 Apr 2022 14:51:11 +1000 Subject: [PATCH 1/3] Add `Number` type to global definitions On a new project, the default `tsconfg` will render the following error: `Cannot find global type 'Number'` The change in this PR resolves the error which, while benign, sends a cascade of red errors through file structures, hindering developer experience. --- std/assembly/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/assembly/index.d.ts b/std/assembly/index.d.ts index 8f9fda79fb..9bf3ca5250 100644 --- a/std/assembly/index.d.ts +++ b/std/assembly/index.d.ts @@ -1405,7 +1405,7 @@ declare const F32: typeof _Float; declare const F64: typeof _Float; /** Alias of F64. */ declare const Number: typeof F64; - +declare type Number = typeof F64; // User-defined diagnostic macros /** Emits a user-defined diagnostic error when encountered. */ From dfb6686215692dc3e8c662c75f8704f60c37bb92 Mon Sep 17 00:00:00 2001 From: Peter Hayman Date: Wed, 13 Apr 2022 14:53:37 +1000 Subject: [PATCH 2/3] Update index.d.ts --- std/assembly/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/std/assembly/index.d.ts b/std/assembly/index.d.ts index 9bf3ca5250..57d7b2a062 100644 --- a/std/assembly/index.d.ts +++ b/std/assembly/index.d.ts @@ -1406,6 +1406,7 @@ declare const F64: typeof _Float; /** Alias of F64. */ declare const Number: typeof F64; declare type Number = typeof F64; + // User-defined diagnostic macros /** Emits a user-defined diagnostic error when encountered. */ From 2957d1735c53c117e6fe561e618168fc8f16a614 Mon Sep 17 00:00:00 2001 From: Peter Hayman Date: Wed, 13 Apr 2022 14:55:26 +1000 Subject: [PATCH 3/3] Update NOTICE --- NOTICE | 1 + 1 file changed, 1 insertion(+) diff --git a/NOTICE b/NOTICE index 9f4c4679e5..56f50806c1 100644 --- a/NOTICE +++ b/NOTICE @@ -46,6 +46,7 @@ under the licensing terms detailed in LICENSE: * mooooooi * Yasushi Ando * Syed Jafri +* Peter Hayman Portions of this software are derived from third-party works licensed under the following terms: