Glossary: TypeScript Beyond the Basics
as (key renaming)
Also written: key remapping
In a mapped type, `as` after the key renames each property. For example, `[S in Status as `${S}Count`]` turns `shipped` into `shippedCount`.
Glossary: TypeScript Beyond the Basics
Also written: key remapping
In a mapped type, `as` after the key renames each property. For example, `[S in Status as `${S}Count`]` turns `shipped` into `shippedCount`.