summaryrefslogtreecommitdiff
path: root/tests/specs/test/doc_ts_namespace_decl/lib.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/test/doc_ts_namespace_decl/lib.d.ts')
-rw-r--r--tests/specs/test/doc_ts_namespace_decl/lib.d.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/specs/test/doc_ts_namespace_decl/lib.d.ts b/tests/specs/test/doc_ts_namespace_decl/lib.d.ts
new file mode 100644
index 000000000..e7c81cb5f
--- /dev/null
+++ b/tests/specs/test/doc_ts_namespace_decl/lib.d.ts
@@ -0,0 +1,11 @@
+declare namespace MyNamespace {
+ /**
+ * ```ts
+ * import { assertEquals } from "@std/assert/equals";
+ * import "./mod.js";
+ *
+ * assertEquals(MyNamespace.add(1, 2), 3);
+ * ```
+ */
+ export function add(a: number, b: number): number;
+}