diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-06-29 17:31:30 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-06-29 17:31:30 -0700 |
commit | 58be1809c46cbe517a18d86d0af52179dcc5cbf6 (patch) | |
tree | 9ccc678b3fd48c1a52fe501600dd2c2051740a55 /u/fn/callable.ts | |
parent | d4791f3d357634daf506fb8f91cc5332a794c421 (diff) | |
download | ci-58be1809c46cbe517a18d86d0af52179dcc5cbf6.tar.gz ci-58be1809c46cbe517a18d86d0af52179dcc5cbf6.zip |
Move to nodejs and also lots of significant refactoring that should've been broken up but idgaf
Diffstat (limited to 'u/fn/callable.ts')
-rw-r--r-- | u/fn/callable.ts | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/u/fn/callable.ts b/u/fn/callable.ts deleted file mode 100644 index 8a61057..0000000 --- a/u/fn/callable.ts +++ /dev/null @@ -1,20 +0,0 @@ -// deno-lint-ignore no-explicit-any -export interface Callable<T = any, ArgT = any> { - (...args: Array<ArgT>): T; -} - -export interface Supplier<T> extends Callable<T, undefined> { - (): T; -} - -export interface Mapper<T, U> extends Callable<U, T> { - (t: T): U; -} - -export interface BiMapper<T, U, R> extends Callable { - (t: T, u: U): R; -} - -export interface SideEffect<T> extends Mapper<T, void> {} - -export interface BiSideEffect<T, U> extends BiMapper<T, U, void> {} |