nateabele / typescript-ramda

TypeScript's type definitions for Ramda

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

##Type definitions for Ramda

Build Status ![Gitter](https://badges.gitter.im/Join Chat.svg)

Test with:

tsc --module amd ramda-tests.ts

Pull requests are welcome!

##Usage

Install the typings for node using:

typings install ramda --save

If you use the package through a script tag, use:

typings install ramda --global --save

To use the Ramda type definitions include the following line in each of the .ts files that use Ramda:

    /// <reference path="./path/to/ramda.d.ts" />

or

    import * as R from './path/to/ramda'

##Note on placeholders Due to incompatiblity problems with typescript's typing system, Ramda's placeholder typing is removed. For binary functions the same functionaly can be achieved using R.flip. For example:

// using a placeholder ...
R.subtract(*placeholder*, 3);
// ... is the same as
R.flip(R.subtract)(3);

##Status Typing compatible with ramda version 0.21.0. This needs to be done:

  • include sequence and traverse
  • include pipeK, pipeP, composeK, composeP

About

TypeScript's type definitions for Ramda

License:MIT License


Languages

Language:TypeScript 100.0%