Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.

ikatyang/types-ramda

Repository files navigation

[DEPRECATED] This project has been merged into types/npm-ramda.

types-ramda

release build coverage

TypeScript's type definitions for Ramda

Changelog

Version

This project uses the same MAJOR.MINOR version as Ramda.

Features

For User

  • support placeholder ( R.__ )
  • support partial import ( import * as map from "ramda/src/map" )
  • support selectable overloads ( use 0-param: R.map<"11", "list">() )

For Developer

  • support snapshot testing ( via dts-jest, see ./tests/*.ts )
  • support functions auto-currying ( via dts-element, see ./templates/*.d.ts )

Usage

The following command install the types from the dist branch, which is the newest version and contains selectable and placeholder types.

# using npm
npm install --save-dev ikatyang/types-ramda#dist

# using yarn
yarn add --dev ikatyang/types-ramda#dist

NOTE: You can also choose which release version to install using #<branch/commit/tag>, for example:

yarn add --dev ikatyang/types-ramda#v0.24.0-dist
yarn add --dev ikatyang/types-ramda#v0.24.0-dist-simple
yarn add --dev ikatyang/types-ramda#v0.24.0-dist-selectable
yarn add --dev ikatyang/types-ramda#v0.24.0-dist-placeholder

Progress

source version: v0.24.1

Declarations

  • 246/246 done

Unit tests

  • 246/246 done

Integration tests

  • 242/246 done
  • composeK
  • pipeK
  • sequence
  • traverse

Development

# linting
yarn run lint

# migrate jsdoc (ramda-repo -> ./templates/*.md)
yarn run jsdoc

# build types (./templates/*.ts -> ./ramda/dist/**/*.d.ts)
yarn run build

# build types with watching mode
yarn run build-watch

# test utils
yarn run test-utils

# actual test
yarn run test-actual

# snapshot test for types
yarn run test

# snapshot test for types with watching mode
yarn run test -- --watch

# NOTE: test files
#   unit tests -> ./tests/*.ts
#   actual tests -> ./tests/ramda-tests.ts
#   integration tests -> ./tests/ramda-tests.ts

# remap snapshots (./tests/__snapshots__/*.ts.snap -> ./snapshots/*.ts)
yarn run remap

# remap snapshots with watching mode
yarn run remap-watch

# check if snapshot is outdated
yarn run remap-check

Related

  • npm-ramda: TypeScript's type definitions for Ramda from @types

License

MIT © Ika