tariffs/src/types/object-with-possible-fields.ts
2022-12-21 20:06:04 +00:00

4 lines
129 B
TypeScript

export type ObjectWithPossibleFields<KeyValue extends Record<string, unknown>> = {
[Key in keyof KeyValue]?: KeyValue[Key];
};