src/types/general.ts
/**
* Make specific properties in T required
*/
export type RequiredProperties<T, K extends keyof T> = T & {
[P in K]-?: T[P];
};
/**
* Make specific properties in T required
*/
export type RequiredProperties<T, K extends keyof T> = T & {
[P in K]-?: T[P];
};