@@ -3,6 +3,19 @@ class ___proto__ {
33 public propertyIsEnumerable : string ;
44}
55
6+ // WARNING: propertyWithNoType has incomplete type information
7+ // @internal
8+ class _InternalClass {
9+ public _internalMethodWithRedundantUnderscore ( ) : void ;
10+ // (undocumented)
11+ public test ( ) : void ;
12+ }
13+
14+ // @internal (preapproved)
15+ class _PreapprovedInternalClass {
16+ }
17+
18+
619// (undocumented)
720class A extends __proto__ , implements hasOwnProperty {
821 // (undocumented)
@@ -13,10 +26,10 @@ class A extends __proto__, implements hasOwnProperty {
1326
1427// @public
1528class AliasClass4 {
29+ // @internal
30+ public _aliasFunc ( ) : void ;
1631 // (undocumented)
1732 public aliasField : number ;
18- // @internal
19- public aliasFunc ( ) : void ;
2033 // (undocumented)
2134 public readonly shouldBeReadOnly : number ;
2235}
@@ -30,10 +43,16 @@ class AlphaTaggedClass {
3043
3144// @beta
3245class BetaTaggedClass {
46+ // WARNING: The underscore prefix ("_") should only be used with definitions that are explicitly marked as @internal
47+ // @alpha
48+ public _alphaMethodWithBadUnderscore ( ) : void ;
3349 // @internal
3450 public _internalMethod ( ) : void ;
3551 // @alpha
3652 public alphaMethod ( ) : void ;
53+ // WARNING: Because this definition is explicitly marked as @internal, an underscore prefix ("_") should be added to its name
54+ // @internal
55+ public internalMethodMissingUnderscore ( ) : void ;
3756 public plainMethod ( ) : void ;
3857}
3958
@@ -43,13 +62,6 @@ interface hasOwnProperty {
4362 ___lookupSetter__ : __proto__ ;
4463}
4564
46- // WARNING: propertyWithNoType has incomplete type information
47- // @internal
48- class InternalClass {
49- // (undocumented)
50- public test ( ) : void ;
51- }
52-
5365// (undocumented)
5466class MyClass {
5567 // (undocumented)
@@ -60,11 +72,6 @@ class MyClass {
6072 public test ( ) : void ;
6173}
6274
63- // @internal (preapproved)
64- class PreapprovedInternalClass {
65- }
66-
67-
6875// (undocumented)
6976export function publicFunction ( param : number ) : string ;
7077
0 commit comments