TypeScript - 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 | Implement an interface |
imports | Import a module |
interface | Defines a code contract that can be implemented by types |
module | Container for classes and other code |
public/private | Member visibility modifiers |
... | Rest parameter syntax |
=> | Arrow syntax used with definitions and functions |
<typeName> | <> characters use to cast/convert between types |
: | Separator between variable/parameter names and types |
? | Operator for optional parameter in function |