From 9ec18c35c7e6207fc96d6b2508c3bf37953c4f93 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 26 Oct 2023 21:27:50 -0400 Subject: feat(doc): display non-exported types referenced in exported types (#20990) Upgrades to deno_doc 0.70 which includes the feature for showing non-exported types referenced in exported types as well as a much more advanced deno doc that uses a symbol graph. --- cli/tests/testdata/doc/referenced_private_types.out | 12 ++++++++++++ cli/tests/testdata/doc/referenced_private_types.ts | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100644 cli/tests/testdata/doc/referenced_private_types.out create mode 100644 cli/tests/testdata/doc/referenced_private_types.ts (limited to 'cli/tests/testdata') diff --git a/cli/tests/testdata/doc/referenced_private_types.out b/cli/tests/testdata/doc/referenced_private_types.out new file mode 100644 index 000000000..507b91e3a --- /dev/null +++ b/cli/tests/testdata/doc/referenced_private_types.out @@ -0,0 +1,12 @@ +Defined in file:///[WILDCARD]/doc/referenced_private_types.ts:5:0 + +class MyClass + + prop: MyInterface + +Defined in file:///[WILDCARD]/doc/referenced_private_types.ts:1:0 + +private interface MyInterface + + prop?: string + diff --git a/cli/tests/testdata/doc/referenced_private_types.ts b/cli/tests/testdata/doc/referenced_private_types.ts new file mode 100644 index 000000000..9570d4625 --- /dev/null +++ b/cli/tests/testdata/doc/referenced_private_types.ts @@ -0,0 +1,7 @@ +interface MyInterface { + prop?: string; +} + +export class MyClass { + prop: MyInterface = {}; +} -- cgit v1.2.3