Include examples in your documentations. $ npm install --save-dev typedoc-plugin-include-example $ npx typedoc --plugin typedoc-plugin-include-example /** * @includeExample path/to/your/example.ts:1-5,10 */ function myFunction() { // ... }