The new module format enables global-less universal modules, compatible with both AMD and CJS module loaders. Fixes #2036.
18 lines
171 B
Text
18 lines
171 B
Text
=== tests/cases/compiler/es5-umd.ts ===
|
|
|
|
class A
|
|
>A : A
|
|
{
|
|
constructor ()
|
|
{
|
|
|
|
}
|
|
|
|
public B()
|
|
>B : () => number
|
|
{
|
|
return 42;
|
|
>42 : number
|
|
}
|
|
}
|
|
|