frontend/.pnpm-store/v3/files/80/11f78aa8c804d6fcbfe63d57c6f92ea9938dca0619d14406987dac1ff1726a3af30ecb9cebd86b18cecafd2b809558d127d40b74c001649a3c53497ae40cff

25 lines
466 B
Plaintext

/**
Flatten the type output to improve type hints shown in editors.
@example
```
import {Simplify} from 'type-fest';
type PositionProps = {
top: number;
left: number;
};
type SizeProps = {
width: number;
height: number;
};
// In your editor, hovering over `Props` will show a flattened object with all the properties.
type Props = Simplify<PositionProps & SizeProps>;
```
@category Utilities
*/
export type Simplify<T> = {[KeyType in keyof T]: T[KeyType]};