April 2018
Beginner
536 pages
13h 21m
English
The TypeScript textbook by Basarat Ali Syed describes the binder as follows:
TypeScript supports a feature known as declaration merging, which allows us to merge two separate declarations declared with the same name into a single definition. For example, the following code snippet declares two interfaces named Person and a variable named person:
interface Person {
name: string;
}
interface Person {
surname: string;
}
const person: Person = { name: "Remo", surname: "Jansen" };
The type of the variable is Person, and as we can see, the type ...