From 7d317f5213fc6af8b07651cb16a80ba70afbe3f6 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Thu, 12 Dec 2024 01:16:33 +0900 Subject: [PATCH 1/8] Restore note about @deno-types --- runtime/reference/ts_config_migration.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/reference/ts_config_migration.md b/runtime/reference/ts_config_migration.md index cf3a60bd..9e99d92b 100644 --- a/runtime/reference/ts_config_migration.md +++ b/runtime/reference/ts_config_migration.md @@ -279,6 +279,9 @@ The compiler hint pattern-matching is quite flexible, it accepts both quoted and non-quoted values for the specifier, as well as any whitespace around the equals sign. +> ℹ️ _Note_: The directive `@deno-types` can be used as an alias for +> `@ts-types`. This is not recommended anymore. + ## Providing types when hosting If you have control over the module’s source code or how the file is hosted on a From 74a80e60faf47328e5d7366dd38b48041e79b322 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Thu, 12 Dec 2024 12:14:24 +0900 Subject: [PATCH 2/8] Update runtime/reference/ts_config_migration.md Co-authored-by: Luca Casonato --- runtime/reference/ts_config_migration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/reference/ts_config_migration.md b/runtime/reference/ts_config_migration.md index 9e99d92b..edb9387f 100644 --- a/runtime/reference/ts_config_migration.md +++ b/runtime/reference/ts_config_migration.md @@ -279,7 +279,7 @@ The compiler hint pattern-matching is quite flexible, it accepts both quoted and non-quoted values for the specifier, as well as any whitespace around the equals sign. -> ℹ️ _Note_: The directive `@deno-types` can be used as an alias for +> ℹ️ _Note_: In the past the `@ts-types` directive was called `@deno-types`. This alias still works, but is not recommended anymore. Use `@ts-types`. > `@ts-types`. This is not recommended anymore. ## Providing types when hosting From 11ed32653b55aa3b357acbabe5ec634022220a74 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Thu, 12 Dec 2024 12:18:30 +0900 Subject: [PATCH 3/8] fmt --- runtime/reference/ts_config_migration.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/reference/ts_config_migration.md b/runtime/reference/ts_config_migration.md index edb9387f..c31f9f85 100644 --- a/runtime/reference/ts_config_migration.md +++ b/runtime/reference/ts_config_migration.md @@ -279,7 +279,8 @@ The compiler hint pattern-matching is quite flexible, it accepts both quoted and non-quoted values for the specifier, as well as any whitespace around the equals sign. -> ℹ️ _Note_: In the past the `@ts-types` directive was called `@deno-types`. This alias still works, but is not recommended anymore. Use `@ts-types`. +> ℹ️ _Note_: In the past the `@ts-types` directive was called `@deno-types`. +> This alias still works, but is not recommended anymore. Use `@ts-types`. > `@ts-types`. This is not recommended anymore. ## Providing types when hosting From e887afc57174eb97933f978179c7c154fa405c52 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Thu, 12 Dec 2024 12:18:47 +0900 Subject: [PATCH 4/8] remove now false note --- runtime/reference/ts_config_migration.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/runtime/reference/ts_config_migration.md b/runtime/reference/ts_config_migration.md index c31f9f85..f99d79ac 100644 --- a/runtime/reference/ts_config_migration.md +++ b/runtime/reference/ts_config_migration.md @@ -275,10 +275,6 @@ When you’re performing type checking on `coolLib` and using it in your file, t TypeScript type definitions from `coolLib.d.ts` will take precedence over examining the JavaScript file. -The compiler hint pattern-matching is quite flexible, it accepts both quoted and -non-quoted values for the specifier, as well as any whitespace around the equals -sign. - > ℹ️ _Note_: In the past the `@ts-types` directive was called `@deno-types`. > This alias still works, but is not recommended anymore. Use `@ts-types`. > `@ts-types`. This is not recommended anymore. From f10555cea9cb2b34cd6e8470b5273c7a9c8bfb0e Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Thu, 12 Dec 2024 12:26:32 +0900 Subject: [PATCH 5/8] fix --- runtime/reference/ts_config_migration.md | 1 - 1 file changed, 1 deletion(-) diff --git a/runtime/reference/ts_config_migration.md b/runtime/reference/ts_config_migration.md index f99d79ac..9c9fc7ae 100644 --- a/runtime/reference/ts_config_migration.md +++ b/runtime/reference/ts_config_migration.md @@ -277,7 +277,6 @@ examining the JavaScript file. > ℹ️ _Note_: In the past the `@ts-types` directive was called `@deno-types`. > This alias still works, but is not recommended anymore. Use `@ts-types`. -> `@ts-types`. This is not recommended anymore. ## Providing types when hosting From 5fa90294fa0d88333a885472610b38ec08ec1980 Mon Sep 17 00:00:00 2001 From: Jo Franchetti Date: Thu, 12 Dec 2024 09:23:17 +0000 Subject: [PATCH 6/8] Update runtime/reference/ts_config_migration.md --- runtime/reference/ts_config_migration.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/runtime/reference/ts_config_migration.md b/runtime/reference/ts_config_migration.md index 9c9fc7ae..e9d426fc 100644 --- a/runtime/reference/ts_config_migration.md +++ b/runtime/reference/ts_config_migration.md @@ -275,8 +275,12 @@ When you’re performing type checking on `coolLib` and using it in your file, t TypeScript type definitions from `coolLib.d.ts` will take precedence over examining the JavaScript file. -> ℹ️ _Note_: In the past the `@ts-types` directive was called `@deno-types`. -> This alias still works, but is not recommended anymore. Use `@ts-types`. +:::note + +In the past the `@ts-types` directive was called `@deno-types`. +This alias still works, but is not recommended anymore. Use `@ts-types`. + +::: ## Providing types when hosting From 45aeef1688022984f16484566e4439b41d84b0f9 Mon Sep 17 00:00:00 2001 From: Jo Franchetti Date: Thu, 12 Dec 2024 09:25:56 +0000 Subject: [PATCH 7/8] Update runtime/reference/ts_config_migration.md --- runtime/reference/ts_config_migration.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/reference/ts_config_migration.md b/runtime/reference/ts_config_migration.md index e9d426fc..e8b5b7fb 100644 --- a/runtime/reference/ts_config_migration.md +++ b/runtime/reference/ts_config_migration.md @@ -278,7 +278,8 @@ examining the JavaScript file. :::note In the past the `@ts-types` directive was called `@deno-types`. -This alias still works, but is not recommended anymore. Use `@ts-types`. +This alias still works, but is not recommended anymore. +Use `@ts-types`. ::: From 305086526664af20e90a744128d5baf0453a4478 Mon Sep 17 00:00:00 2001 From: Jo Franchetti Date: Thu, 12 Dec 2024 09:29:58 +0000 Subject: [PATCH 8/8] Update runtime/reference/ts_config_migration.md trying to make fmt happy --- runtime/reference/ts_config_migration.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/reference/ts_config_migration.md b/runtime/reference/ts_config_migration.md index e8b5b7fb..57d47b41 100644 --- a/runtime/reference/ts_config_migration.md +++ b/runtime/reference/ts_config_migration.md @@ -277,9 +277,8 @@ examining the JavaScript file. :::note -In the past the `@ts-types` directive was called `@deno-types`. -This alias still works, but is not recommended anymore. -Use `@ts-types`. +In the past the `@ts-types` directive was called `@deno-types`. This alias still +works, but is not recommended anymore. Use `@ts-types`. :::