Skip to content

Instantly share code, notes, and snippets.

@antongolub
Last active January 17, 2020 19:47
Show Gist options
  • Save antongolub/cd19aa9831389584c0916352d2f491c9 to your computer and use it in GitHub Desktop.
Save antongolub/cd19aa9831389584c0916352d2f491c9 to your computer and use it in GitHub Desktop.
Merge a pair of classes
type IMixinApplier = <T extends IConstructable, M extends IConstructable>(target: T, mixin: M) =>
T & M & Class<InstanceType<T> & InstanceType<M>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment