Preview:```ts
export type KeyMap<TEntity> = {
[Key in keyof TEntity]?: string;
};
export type MappedEntity<TEntity, TKeyMap extends KeyMap<TEntity>> = {
[Key in keyof TEntity as TKeyMap[Key] extends string ? TKeyMap[Key] : Key]: TEntity[Key];
};
type User = {
id: number;
...```
You can choose specific lines to embed by selecting them before copying the link.