Skip to content

Instantly share code, notes, and snippets.

@devCola
Created June 19, 2018 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devCola/1149df6f3f87ea1387c88d5e8e4634f3 to your computer and use it in GitHub Desktop.
Save devCola/1149df6f3f87ea1387c88d5e8e4634f3 to your computer and use it in GitHub Desktop.
ramda currying typescript
// yarn add ramda @types-ramda
import {
curry,
} from 'ramda';
function test(a: string, b: number, c: boolean) {
// ...
}
const curried1 = curry(test);
// typeof curried1: R.CurriedFunction3<string, number, boolean, void>
const curried2 = curried1('hello', 3);
// typeof curried2: (t3: boolean) => void
curried2(false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment