shellphone.app/helpers.d.ts

2 lines
121 B
TypeScript
Raw Normal View History

type RequireAtLeastOne<T> = { [K in keyof T]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<keyof T, K>>> }[keyof T];