4 lines
129 B
TypeScript
4 lines
129 B
TypeScript
export type ObjectWithPossibleFields<KeyValue extends Record<string, unknown>> = {
|
|
[Key in keyof KeyValue]?: KeyValue[Key];
|
|
};
|