mirror of
https://github.com/denoland/deno.git
synced 2024-12-14 19:37:59 -05:00
37 lines
448 B
Markdown
37 lines
448 B
Markdown
|
# Documentation
|
||
|
|
||
|
The following examples are inside HTML comments and will not trigger the
|
||
|
type-checker:
|
||
|
|
||
|
<!-- ```ts ignore
|
||
|
const value: Invalid = "ignored";
|
||
|
``` -->
|
||
|
|
||
|
<!--
|
||
|
```ts
|
||
|
const a: string = 42;
|
||
|
```
|
||
|
-->
|
||
|
|
||
|
<!--
|
||
|
|
||
|
This is a comment.
|
||
|
|
||
|
```ts
|
||
|
const a: string = 42;
|
||
|
```
|
||
|
|
||
|
Something something more comments.
|
||
|
|
||
|
```typescript
|
||
|
const a: boolean = "true";
|
||
|
```
|
||
|
|
||
|
-->
|
||
|
|
||
|
The following example will trigger the type-checker to fail:
|
||
|
|
||
|
```ts
|
||
|
const a: string = 42;
|
||
|
```
|