File tree Expand file tree Collapse file tree 4 files changed +44
-0
lines changed
js/js.translator/testData/typescript-export/js
module-systems-in-exported-file Expand file tree Collapse file tree 4 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,21 @@ export declare namespace Parent {
75
75
}
76
76
}
77
77
}
78
+ export declare interface AnInterfaceWithCompanion {
79
+ readonly __doNotUseOrImplementIt : {
80
+ readonly "foo.AnInterfaceWithCompanion" : unique symbol ;
81
+ } ;
82
+ }
83
+ export declare abstract class AnInterfaceWithCompanion extends KtSingleton < AnInterfaceWithCompanion . $metadata$ . constructor > ( ) {
84
+ private constructor ( ) ;
85
+ }
86
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
87
+ export declare namespace AnInterfaceWithCompanion . $metadata$ {
88
+ abstract class constructor {
89
+ get someValue ( ) : string ;
90
+ private constructor ( ) ;
91
+ }
92
+ }
78
93
export declare function box ( ) : string ;
79
94
export declare function asyncList ( ) : Promise < KtList < number > > ;
80
95
export declare function arrayOfLists ( ) : Array < KtList < number > > ;
Original file line number Diff line number Diff line change @@ -40,6 +40,13 @@ object Parent {
40
40
}
41
41
42
42
43
+ interface AnInterfaceWithCompanion {
44
+ companion object {
45
+ val someValue = " OK"
46
+ }
47
+ }
48
+
49
+
43
50
fun box (): String = " OK"
44
51
45
52
Original file line number Diff line number Diff line change @@ -75,6 +75,21 @@ export declare namespace Parent {
75
75
}
76
76
}
77
77
}
78
+ export declare interface AnInterfaceWithCompanion {
79
+ readonly __doNotUseOrImplementIt : {
80
+ readonly "foo.AnInterfaceWithCompanion" : unique symbol ;
81
+ } ;
82
+ }
83
+ export declare abstract class AnInterfaceWithCompanion extends KtSingleton < AnInterfaceWithCompanion . $metadata$ . constructor > ( ) {
84
+ private constructor ( ) ;
85
+ }
86
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
87
+ export declare namespace AnInterfaceWithCompanion . $metadata$ {
88
+ abstract class constructor {
89
+ get someValue ( ) : string ;
90
+ private constructor ( ) ;
91
+ }
92
+ }
78
93
export declare function box ( ) : string ;
79
94
export declare function asyncList ( ) : Promise < KtList < number > > ;
80
95
export declare function arrayOfLists ( ) : Array < KtList < number > > ;
Original file line number Diff line number Diff line change @@ -34,6 +34,13 @@ object Parent {
34
34
}
35
35
}
36
36
37
+ @JsExport
38
+ interface AnInterfaceWithCompanion {
39
+ companion object {
40
+ val someValue = " OK"
41
+ }
42
+ }
43
+
37
44
@JsExport
38
45
fun box (): String = " OK"
39
46
You can’t perform that action at this time.
0 commit comments