Skip to content

Commit 187dbf9

Browse files
octogonzjavier-garcia-meteologica
authored andcommitted
Add example of a nested namespace to api-extractor-lib1-test
1 parent f53532e commit 187dbf9

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

build-tests/api-extractor-lib1-test/etc/api-extractor-lib1-test.api.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,18 @@ export class Lib1Class extends Lib1ForgottenExport {
1818
export interface Lib1Interface {
1919
}
2020

21+
// @public (undocumented)
22+
export namespace Lib1Namespace {
23+
// (undocumented)
24+
export namespace Inner {
25+
// (undocumented)
26+
export class X {
27+
}
28+
}
29+
// (undocumented)
30+
export class Y {
31+
}
32+
}
33+
2134

2235
```
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
2+
// See LICENSE in the project root for license information.
3+
4+
/** @public */
5+
export namespace Lib1Namespace {
6+
export namespace Inner {
7+
export class X {}
8+
}
9+
export class Y {}
10+
}

build-tests/api-extractor-lib1-test/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ export class Lib1Class extends Lib1ForgottenExport {
2626

2727
/** @alpha */
2828
export interface Lib1Interface {}
29+
30+
export { Lib1Namespace } from './Lib1Namespace';

0 commit comments

Comments
 (0)