Javascript Patterns in Typescript - MDC 2021
Javascript Patterns in
Typescript
Javascript Idioms + Strong Typing = ???
Hi, I¡¯m Joe
Joe DeCock
Web Developer - .NET and Front End
Dad
ILM Principal Consultant
@jmdc
Typescript in a Nutshell
1.
Start with a highly dynamic language
2.
Add static types
3.
???
4.
Profit!
Topics For Today
Find out how Typescript can...
¡ñ
Describe types with dynamic properties
¡ñ
Type-check ¡°magic strings¡± that refer to property names
¡ñ
Describe functions that operate on, and return, multiple types of data
Javascript Pattern - Dynamic Properties
How can a programming language describe properties of a type without knowing the properties¡¯ names?
Examples:
¡ñ
¡ñ
¡ñ
¡ñ
Object literals used as dictionaries for fast lookups
Utility libraries that create dynamic objects
Arrays
ArrayLike objects such as DOM NodeLists
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- seeing patterns in vision
- geometric patterns in vision
- sentence patterns in english grammar
- seeing patterns in eyes
- javascript exists in array
- define patterns in literature
- examples of patterns in literature
- story patterns in literature
- sound patterns in literature
- plot patterns in literature
- seeing funny patterns in eyes
- breathing patterns in dying patients