import UppyCore = require('@uppy/core'); export type Uppy = UppyCore.Uppy export type Locale = UppyCore.Locale // Helper to exclude a key export type Omit = Pick> // If I use the helper it doesn't work, I think because 'target' is not a `keyof T` while // the generic T is unknown, so will just use the expansion here type OmitTarget = Pick> type WithBaseUppyProps = T & { uppy: Uppy } export type ToUppyProps = WithBaseUppyProps>