var a: number = 3;
var b: number[] = [1,2,3];
var a: number = <number>b;
function (a?: number, isTrue: boolean = false) { ... }
function (a?: number|string, isTrue: boolean = false) { ... }
var a: any = {};
JQuery
Webix
window
console
http://definitelytyped.org/tsd/
http://www.typescriptlang.org/docs/handbook/tsconfig.json.html
http://www.typescriptlang.org/docs/handbook/compiler-options.html
var a = 2;
(function(){
var a = 2;
return {
getName: function(){
return "vlad";
}
}
})()
import defaultMember from "module-name"; import * as name from "module-name"; import { member } from "module-name"; import { member as alias } from "module-name"; import { member1 , member2 } from "module-name"; import { member1 , member2 as alias2 , [...] } from "module-name"; import defaultMember, { member [ , [...] ] } from "module-name"; import defaultMember, * as name from "module-name"; import "module-name";
export { name1, name2, …, nameN }; export { variable1 as name1, variable2 as name2, …, nameN }; export let name1, name2, …, nameN; export let name1 = …, name2 = …, …, nameN; export default expression; export default function (…) { … } export default function name1(…) { … } export { name1 as default, … };
(fucntion (require, exports) {
//code
})( getRequire(path), getExports(path))