Skip to content

Commit c8d710a

Browse files
unknownunknown
authored andcommitted
Update demo TS file
1 parent b3c3795 commit c8d710a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

examples/basic/src/default-export.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
class NotExportedClassName
1010
{
1111
/**
12-
* Property of not exported class.
12+
* Property of NotExportedClassName class.
1313
*/
1414
public notExportedProperty:string;
1515

1616

1717
/**
18-
* This is the constructor of the not exported class.
18+
* This is the constructor of the NotExportedClassName class.
1919
*/
2020
constructor() { }
2121

2222

2323
/**
24-
* Method of not exported class.
24+
* Method of NotExportedClassName class.
2525
*/
2626
public getNotExportedProperty():string {
2727
return this.notExportedProperty;
@@ -33,29 +33,30 @@ class NotExportedClassName
3333
* This class is exported via es6 export syntax.
3434
*
3535
* ```
36-
* export default class SingleExportedClass
36+
* export default class DefaultExportedClass
3737
* ```
3838
*/
39-
export default class SingleExportedClass
39+
export default class DefaultExportedClass
4040
{
4141
/**
42-
* Property of exported class.
42+
* Property of default exported class.
4343
*/
4444
public exportedProperty:string;
4545

4646

4747
/**
48-
* This is the constructor of the exported class.
48+
* This is the constructor of the default exported class.
4949
*/
5050
constructor() { }
5151

5252

5353
/**
54-
* Method of exported class.
54+
* Method of default exported class.
5555
*/
5656
public getExportedProperty():string {
5757
return this.exportedProperty;
5858
}
5959
}
6060

61+
// Rename class on export
6162
export {NotExportedClassName as ExportedClassName};

0 commit comments

Comments
 (0)