Skip to content

Commit

Permalink
Replace @deno-types with @ts-types (#1254)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k authored Dec 12, 2024
1 parent 7a8506e commit 34282c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/tutorials/express.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ touch main.ts
In `main.ts`, let's create a simple server:

```ts
// @deno-types="npm:@types/[email protected]"
// @ts-types="npm:@types/[email protected]"
import express from "npm:[email protected]";

const app = express();
Expand Down
5 changes: 2 additions & 3 deletions runtime/fundamentals/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -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";
```
Expand Down

0 comments on commit 34282c5

Please sign in to comment.