mirror of
https://github.com/denoland/deno.git
synced 2024-11-16 16:53:20 -05: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";
|
|
}
|