frontend/.pnpm-store/v3/files/9b/31dcf50e9defa2de7fb0b0c66eba8a691bc290f407df7dbff6a4dd85056b640754f1194874b96ae69b56f100511890b6b20ccaa581c2737faad0b306bd7352

24 lines
441 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 type {Stringified} from 'type-fest';
type Car = {
model: string;
speed: number;
}
const carForm: Stringified<Car> = {
model: 'Foo',
speed: '101'
};
```
@category Object
*/
export type Stringified<ObjectType> = {[KeyType in keyof ObjectType]: string};