Loading topic
Array<T> is familiar. You do not need to know mapped types yet. This chapter touches on them briefly, and a later chapter covers them fully.5 min readArray<T>. It uses keyof and Exclude only lightly. Later chapters cover both in detail.5 min readRecord<K, V>, the utility type for objects used as lookup tables. It assumes you know basic TypeScript syntax (type annotations, interfaces, type aliases), union types and string literal types, and generic syntax such as Array<T>. You should also know that Partial and `Pick5 min readname?: string), and generic syntax such as Array<T>. You will learn what Required<T> and Readonly<T> do, where each one helps, and where each one stops protecting you.5 min readPartial, Pick, Omit, Required, Readonly), the syntax of generics such as Array<T>, and union and string literal types. Here you will combine those types to describe the shapes an application actually needs. You 5 min readExclude, Extract and NonNullable. It assumes you know basic TypeScript syntax, union types, string literal types and generic syntax such as Array<T>. The earlier chapters reshaped object types. These utilities work on the m5 min readtypeof does in a type position. It covers ReturnType<T> and Parameters<T>, plus two close relatives, ConstructorParameters<T> and InstanceType<T>.5 min readPromise<T>, and await. It also assumes you have met ReturnType and Parameters from the previous chapter, plus generics and conditional types at a reading level (T extends U ? X : Y).4 min readArray<T>. It covers the two type operators that every utility type is built from. Once you understand keyof and indexed access types, the mapped types in the next ch5 min readArray<T>. You should also have met Partial, Pick, Omit and Record in earlier chapters. Here you will see that each of them is a short mapped type, an5 min readPartial, Pick, Omit, Record, Exclude and ReturnType from the earlier chapters. Each5 min read