mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 16:19:12 -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";
|
|
}
|