frontend/.pnpm-store/v3/files/f2/bf30a498429b4601a96aaa5cb4ea4821ab1158f08240571ccdd9cc095b985da51aa23e847aa9048633f57cff7d72bdafbd26f4280e9b0e990af4cd85485581

24 lines
437 B
Plaintext

/**
Create a type with the keys of the given type changed to `string` type.
Use-case: Changing interface values to strings in order to use them in a form model.
@example
```
import {Stringified} from 'type-fest';
type Car {
model: string;
speed: number;
}
const carForm: Stringified<Car> = {
model: 'Foo',
speed: '101'
};
```
@category Utilities
*/
export type Stringified<ObjectType> = {[KeyType in keyof ObjectType]: string};