forked from denoland/deno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): support typechecking docs with CRLF line endings (denoland…
- Loading branch information
Showing
7 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Documentation | ||
|
||
The following block does not have a language attribute and should be ignored: | ||
|
||
``` | ||
This is a fenced block without attributes, it's invalid and it should be ignored. | ||
``` | ||
|
||
The following block should be given a js extension on extraction: | ||
|
||
```js | ||
console.log("js"); | ||
``` | ||
|
||
The following block should be given a ts extension on extraction: | ||
|
||
```ts | ||
console.log("ts"); | ||
``` | ||
|
||
The following example contains the ignore attribute and will be ignored: | ||
|
||
```ts ignore | ||
const value: Invalid = "ignored"; | ||
``` | ||
|
||
The following example will trigger the type-checker to fail: | ||
|
||
```ts | ||
const a: string = 42; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Check [WILDCARD]/test/markdown_windows.md$11-14.js | ||
Check [WILDCARD]/test/markdown_windows.md$17-20.ts | ||
Check [WILDCARD]/test/markdown_windows.md$29-32.ts | ||
error: TS2322 [ERROR]: Type 'number' is not assignable to type 'string'. | ||
const a: string = 42; | ||
^ | ||
at [WILDCARD]/test/markdown_windows.md$29-32.ts:1:7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters