TypeScript type definition in summary

Summarize common type definition patterns in TypeScript as a quick reference.