-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
By DesignDeprecated - use "Working as Intended" or "Design Limitation" insteadDeprecated - use "Working as Intended" or "Design Limitation" instead
Description
car.ts:
export class Car {
public beep(): void {}
}
truck.ts:
import Car = require("./car");
class Truck extends Car.Car {}
new Truck().beep();
I expected ./car to be defined in both of these scenarios but it's elided in the first:
'tsc --target es5 --module amd --noResolve truck.ts' => 'define(["require", "exports"]'
'tsc --target es5 --module amd truck.ts' => 'define(["require", "exports", "./car"]'
Metadata
Metadata
Assignees
Labels
By DesignDeprecated - use "Working as Intended" or "Design Limitation" insteadDeprecated - use "Working as Intended" or "Design Limitation" instead