This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
TS 2.0 construct support #90
Closed
Description
A list of TS-2.0 constructs that we'll need to watch out for:
Module declarations, for example shorthand ambient module declarations (#50):
declare module "foo/*";
The non-null assertion operator:
function processEntity(e?: Entity) {
validateEntity(e);
let s = e!.name; // Assert that e is non-null and access name
}
Typed usages of this
(this
is not really a parameter):
function f(this: void) {
// make sure `this` is unusable in this standalone function
}
This is not necessarily a complete list.