UNPKG

@uploadcare/file-uploader

Version:

Building blocks for Uploadcare products integration

8 lines 608 B
export type GConstructor<T> = new (...args: any[]) => T; /** * This is a helper to create a class type extended with the provided set of instance properties. It's useful when there * are some dynamic generated properties or native overrides in the class. We're use it to define dynamic access * properties and events to subscribe to. */ export type MixinClass<Base extends GConstructor<HTMLElement>, InstanceProperties extends Record<string, any> = {}> = (new (...args: ConstructorParameters<Base>) => InstanceProperties & InstanceType<Base>) & Omit<Base, "new">; //# sourceMappingURL=mixinClass.d.ts.map