October 2017
Intermediate to advanced
280 pages
6h 50m
English
To understand how everything works together, let's take a look at an example. Suppose, we have the following interface of a JavaScript library:
var DOM = {
// Returns a set of elements which match the passed selector
selectElements: function (selector) {
// ...
},
hide: function (element) {
// ...
},
show: function (element) {
// ...
}
};
We have an object literal assigned to a variable called DOM. The object has the following methods:
In TypeScript, the preceding definition would ...
Read now
Unlock full access