TypeScript can figure the return type out by looking at the return statements, so we can also optionally leave this off in many cases
You really shouldn’t use arrow function as class members. Arrow functions are duplicated in memory for each class instance, while proper method members are written once in your class’s prototype and shared between all instances.
any means “ignore the type”,
unknown means “we don’t know the type”, which aren’t the same thing, and for better code you’d rather not know the type than ignore it.
You can’t use
unknown as a simple replacement for
any, that wouldn’t make sense.
unkwnown carries the implication that you should not use this variable other than passing it around. Or testing its type to get rid of the “unknown” state.
Tuples are very useful for simulating multiple returns like React hooks, and other combined values that don't need string object keys
StREST - Set up tests for REST in seconds with YAML.
Fork TS Checker Webpack Plugin - Webpack plugin that runs typescript type checker on a separate process.
Tsickle - TypeScript to Closure Translator.
TypeScript ESLint - Monorepo for all the tooling which enables ESLint to support TypeScript.
ts-node-dev - Restarts target node process when any of required files changes (as standard node-dev) but shares Typescript compilation process between restarts.
dtslint - Tests a TypeScript declaration file for style and correctness.
SonarTS - Static code analyzer for TypeScript.
TypeScript Guidelines - Guideline to focus on how to write effective TypeScript with minimal effort.
typescript-json-schema - Generate json-schemas from your Typescript sources.
tslint-config-security - TSLint security rules.
Conditional Type Checks - Types for testing TypeScript types.
quicktype - Generate types and converters from JSON, Schema, and GraphQL.
typesync - Install missing TypeScript typings for dependencies in your package.json.
TSdx - Zero-config CLI for TypeScript package development.
OneFraction - React/ApolloGraphQL/Node/Mongo demo written in Typescript.
TypeCov - Track missing type coverage to ensure type safety.
type-coverage - CLI tool to check type coverage for typescript code.
TSDoc Standard - Standard but also use TypeScript on JS files with jsdoc.
tsconfig-paths - Load node modules according to tsconfig paths, in run-time or via API.
ts-json-schema-generator - Generate JSON schema from your Typescript sources.
TSQuery - Allows you to query a TypeScript AST for patterns of syntax using a CSS style selector system.
TSDX - Zero-config CLI for TypeScript package development.
Runtypes - Runtime validation for static types.
gts - TypeScript style guide, formatter, and linter by Google.
dts-gen - TypeScript Definition File Generator.
Meta-Typing - Various functions and algorithms implemented purely with TypeScript's type system.
TypeScript website code - Website and web infrastructure for learning TypeScript.
Functional TypeScript - TypeScript standard for rock solid serverless functions.
TypeScript exercises - Collection of challenging TypeScript exercises.
Typescript Data Structures and Algorithms - Collection of classic data structures and algorithms implemented in Typescript with video lectures.
TypeScript’s type hierarchy