https://github.com/donpage/typescriptprac
Learning Typescript
https://github.com/donpage/typescriptprac
Last synced: 3 months ago
JSON representation
Learning Typescript
- Host: GitHub
- URL: https://github.com/donpage/typescriptprac
- Owner: DonPage
- Created: 2015-12-28T02:16:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-28T05:47:18.000Z (over 9 years ago)
- Last Synced: 2024-12-27T17:14:39.700Z (5 months ago)
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Practicing TypeScript
Notes from TypeScript Fundamentals Course## Important Keywords and Operators
| Keyword | Description |
| :------------------------ | :----------------------------------------------- |
| `class` | Container for members such as properties and functions |
| `constructor` | Provides initialization functionality in a class |
| `exports` | Export a member from a module |
| `extends` | Extend a class or interface |
| `implements` | Implements an interface |
| `imports` | Import a module |
| `interface` | Defines a code contract that can be implemented by types |
| `module` | Container for class and other code |
| `public/private` | Member visibility modifiers |
| `...` | Rest parameter syntax |
| `=>` | Arrow syntax used with definitions and functions |
| `` | < > characters use to cast/convert between types |
| `:` | Separator between variable/parameter names and types |## TypeScript Class Members
| Keyword | Description |
| :------------------------ | :----------------------------------------------- |
| `Fields` | Variables. |
| `constructor` | Init an object. Starter data. |
| `Properties` | Get or Set field values. Act as filters |
| `Functions` | Something you want to perform |