Skip to content

Instantly share code, notes, and snippets.

@devinrhode2
Created September 26, 2022 04:27
Show Gist options
  • Save devinrhode2/94166b4bf571149b12c74a7aef3899d0 to your computer and use it in GitHub Desktop.
Save devinrhode2/94166b4bf571149b12c74a7aef3899d0 to your computer and use it in GitHub Desktop.
declare module "redux" {
/** Replace `compose(a, b, c)` with `(...args)=>a(b(c(...args)))` */
function compose(
/** Replace `compose(a, b, c)` with `(...args)=>a(b(c(...args)))` */
a: never,
/** Replace `compose(a, b, c)` with `(...args)=>a(b(c(...args)))` */
b: never,
/** Replace `compose(a, b, c)` with `(...args)=>a(b(c(...args)))` */
c: never,
/** Replace `compose(a, b, c)` with `(...args)=>a(b(c(...args)))` */
d: never,
/** Replace `compose(a, b, c)` with `(...args)=>a(b(c(...args)))` */
e: never,
/** Replace `compose(a, b, c)` with `(...args)=>a(b(c(...args)))` */
f: never,
): never
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment