Basics
Challenges
Classes
Debugging
Events
External Files
Flow Control
Forms
Functions
Html Elements
Installation
Interfaces
Keywords
Modules
Namespaces
Operators
Reference Files
String
Types
"duck typing" is sometimes used to describe when one object is defined as another type who's shape just happens to match.
interface Employee
{
Name: string;
Title: string;
}
let Developer =
{
Name: "Ricky Bobby",
Title: "Senior Developer",
Editor: "Visual Studio Code"
}
let newEmployee: Employee = Developer;