Skip to content

Commit 5b1c639

Browse files
authored
Minor improvement to typescript page (#2689)
1 parent 874bec3 commit 5b1c639

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

runtime/fundamentals/typescript.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,16 @@ oldUrl:
1111
- /runtime/fundamentals/
1212
---
1313

14-
TypeScript is a first class language in Deno, just like JavaScript or
15-
WebAssembly. You can run or import TypeScript without installing anything more
16-
than the Deno CLI. With its built-in TypeScript compiler, Deno will compile your
17-
TypeScript code to JavaScript with no extra config needed. Deno can also type
18-
check your TypeScript code, without requiring a separate type checking tool like
19-
`tsc`.
14+
TypeScript is a first class language in Deno. You can run or import TypeScript
15+
without installing anything more than the Deno CLI. With its built-in TypeScript
16+
compiler, Deno will compile your TypeScript code to JavaScript with no extra
17+
config needed. Deno can also type check your TypeScript code, without requiring
18+
a separate type checking tool like `tsc`.
2019

2120
## Type Checking
2221

2322
One of the main advantages of TypeScript is that it can make your code type
24-
safe, catching errors during development rather than runtime. TypeScript is a
25-
superset of JavaScript meaning that syntactically valid JavaScript becomes
26-
TypeScript with warnings about being "unsafe".
23+
safe, catching errors during development rather than runtime.
2724

2825
:::note
2926

@@ -169,7 +166,7 @@ the TypeScript module that imports the JavaScript module.
169166
import { add } from "./add.js";
170167
```
171168

172-
This is also useful for NPM packages that don't provide type information:
169+
This is also useful for npm packages that don't provide type information:
173170

174171
```ts title="main.ts"
175172
// @ts-types="npm:@types/lodash"

0 commit comments

Comments
 (0)