Skip to content

Commit

Permalink
Edit types.d.ts, del Compose, Pipe
Browse files Browse the repository at this point in the history
- moved these definitions into respective files
  • Loading branch information
matt-mcmahon committed Oct 9, 2020
1 parent d3e5e1f commit 23ee2fc
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions source/app/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */

export type Compose<B, A> = {
(b: B): A
call(a: A): B
from<C>(f: (c: C) => B): Compose<C, A>
}

export type Pipe<A, B> = {
(a: A): B
then: <C>(f: (b: B) => C) => Pipe<A, C>
invoke(a: A): B
}

// From: https://dev.to/kjleitz/comment/gb5d
// Keegan Leitz (https://dev.to/kjleitz)

Expand Down Expand Up @@ -104,7 +92,6 @@ type ArrayInfer<T> = T extends (infer U)[] ? U : never
*/
type TupleInfer<T> = T extends [infer A, ...infer B] ? [A, B] : never

// prettier-ignore
/**
* LAST
*
Expand Down

0 comments on commit 23ee2fc

Please sign in to comment.