mirror of
https://github.com/denoland/deno.git
synced 2024-10-31 09:14:20 -04:00
36c5461129
This commit adds support for type checking codeblocks in the JS doc comments.
10 lines
158 B
TypeScript
10 lines
158 B
TypeScript
/**
|
|
* ```
|
|
* import { example } from "./doc.ts";
|
|
*
|
|
* console.assert(example() == 42);
|
|
* ```
|
|
*/
|
|
export function example(): string {
|
|
return "example";
|
|
}
|