1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 10:09:20 -05:00
denoland-deno/cli/tests/test/doc.ts
Casper Beyer 36c5461129
feat(test): add support for type checking documentation (#10521)
This commit adds support for type checking codeblocks in the JS doc 
comments.
2021-05-11 01:54:39 +02:00

10 lines
158 B
TypeScript

/**
* ```
* import { example } from "./doc.ts";
*
* console.assert(example() == 42);
* ```
*/
export function example(): string {
return "example";
}