Advanced Typescript
Type Declarations
- Types get stripped out during transpile
- Keeping types available is helpful for third-party use of your library
- You can create your own or install from others
Interfaces and Inheritance
- Just like in Java, describes "inputs" and "outputs" of an object
- Also like Java, classes and interfaces can be extended
Ajax
- fetch() makes an async request, but return is uncertain
- So...a promise is returned instead