From 34282c57c741b9fa2e01c84d5ea1cf43f4a83494 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Thu, 12 Dec 2024 12:31:04 +0900 Subject: [PATCH] Replace @deno-types with @ts-types (#1254) --- examples/tutorials/express.md | 2 +- runtime/fundamentals/node.md | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/tutorials/express.md b/examples/tutorials/express.md index 30c5dbaec..318eda84e 100644 --- a/examples/tutorials/express.md +++ b/examples/tutorials/express.md @@ -26,7 +26,7 @@ touch main.ts In `main.ts`, let's create a simple server: ```ts -// @deno-types="npm:@types/express@4.17.15" +// @ts-types="npm:@types/express@4.17.15" import express from "npm:express@4.18.2"; const app = express(); diff --git a/runtime/fundamentals/node.md b/runtime/fundamentals/node.md index 40a6c3041..ecfdbe74b 100644 --- a/runtime/fundamentals/node.md +++ b/runtime/fundamentals/node.md @@ -299,13 +299,12 @@ import chalk from "npm:chalk@5"; ``` Some packages do not ship with types but you can specify their types with the -[`@deno-types`](/runtime/fundamentals/typescript) directive. For example, using -a +[`@ts-types`](/runtime/fundamentals/typescript) directive. For example, using a [`@types`](https://www.typescriptlang.org/docs/handbook/2/type-declarations.html#definitelytyped--types) package: ```ts -// @deno-types="npm:@types/express@^4.17" +// @ts-types="npm:@types/express@^4.17" import express from "npm:express@^4.17"; ```