From 4115571e402ab71e0af88adc530db76aa1d65c30 Mon Sep 17 00:00:00 2001 From: Eric McCarthy Date: Tue, 19 Jul 2022 14:38:16 -0700 Subject: [PATCH] repro for callable variables missing docs --- run.sh | 2 +- src/index.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index c7f88cd..ed65e21 100644 --- a/run.sh +++ b/run.sh @@ -20,4 +20,4 @@ set -v # if TypeDoc's output doesn't match what you expected. Here's one example # checking that the name from package.json is used in TypeDoc's output. -test $(jq '.name' docs/docs.json) = '"typedoc-repros"' +test $(jq '.children[0].signatures[0].comment.summary[0].text' docs/docs.json) = '"my-written-docs-here"' diff --git a/src/index.ts b/src/index.ts index c0a8215..54498ee 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,6 @@ +const makeFn = () => () => {} + /** - * Some code reproducing a bug. + * my-written-docs-here */ -export const bug = 123; +export const myFn = makeFn()