Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 30f218b

Browse files
tatsuyafujisakinschonni
authored andcommitted
Change syntax highlighting from JavaScript to TypeScript
1 parent b60a34a commit 30f218b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/documentation/0055-node-with-typescript

src/documentation/0055-node-with-typescript/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ We can talk about other TypeScript benefits later, let's see some examples now!
1818

1919
Take a look at this code snippet and then we can unpack it together:
2020

21-
```js
21+
```ts
2222
type User = {
2323
name: string;
2424
age: number;
@@ -61,7 +61,7 @@ Now when we know how to compile and run TypeScript code let's see TypeScript bug
6161

6262
This is how we will modify our code:
6363

64-
```js
64+
```ts
6565
type User = {
6666
name: string;
6767
age: number;
@@ -81,7 +81,7 @@ const isJustineAnAdult: string = isAdult(justine, "I shouldn't be here!");
8181

8282
And this is what TypeScript has to say about this:
8383

84-
```js
84+
```ts
8585
example.ts:12:3 - error TS2322: Type 'string' is not assignable to type 'number'.
8686

8787
12 age: "Secret!",

0 commit comments

Comments
 (0)