-
Notifications
You must be signed in to change notification settings - Fork 618
/
Copy pathEntangledNamespace.ts
49 lines (46 loc) · 1.11 KB
/
EntangledNamespace.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
/**
* This is a "beta" namespace.
* @beta
*/
export namespace EntangledNamespace {
/**
* This is a nested namespace.
* The "beta" release tag is inherited from the parent.
*/
export namespace N2 {
/**
* This class is in a nested namespace.
* @alpha
*/
export class ClassX {
/**
* The "alpha" release tag is inherited from the parent.
*/
public static a: string;
}
}
/**
* This is a nested namespace.
* The "beta" release tag is inherited from the parent.
*/
export namespace N3 {
/**
* This class is in a nested namespace.
* @internal
*/
export class _ClassY {
/**
* This definition refers to a "alpha" namespaced class.
*/
public b: EntangledNamespace.N2.ClassX;
/**
* This definition refers to the type of a "alpha" namespaced member.
*/
public c(): typeof N2.ClassX.a {
return undefined as any;
}
}
}
}