File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
tests/test-cases/export-variable-with-iife Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ class InternalClass {
2+ public publicProperty : number = 1 ;
3+ }
4+
5+ class InternalClass2 {
6+ public publicProperty : number = 1 ;
7+ }
8+
9+ export const exportedVariable = ( ( ) => {
10+ return new InternalClass ( ) ;
11+ } ) ( ) ;
12+
13+ export const exportedVariable2 = ( ( ) => {
14+ return new InternalClass2 ( ) . publicProperty ;
15+ } ) ( ) ;
Original file line number Diff line number Diff line change 1+ "use strict" ;
2+ Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
3+ var InternalClass = /** @class */ ( function ( ) {
4+ function InternalClass ( ) {
5+ this . publicProperty = 1 ;
6+ }
7+ return InternalClass ;
8+ } ( ) ) ;
9+ var InternalClass2 = /** @class */ ( function ( ) {
10+ function InternalClass2 ( ) {
11+ this . _internal_publicProperty = 1 ;
12+ }
13+ return InternalClass2 ;
14+ } ( ) ) ;
15+ exports . exportedVariable = ( function ( ) {
16+ return new InternalClass ( ) ;
17+ } ) ( ) ;
18+ exports . exportedVariable2 = ( function ( ) {
19+ return new InternalClass2 ( ) . _internal_publicProperty ;
20+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments