UNPKG

@kform/react

Version:

React integration for KForm.

9 lines (8 loc) 253 B
/** * {@link Omit} that distributes the omission over unions. */ export type DistributedOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never; /** * Value which might be promise-like. */ export type MaybePromise<T> = T | PromiseLike<T>;