Merge pull request #5639 from AyaMorisawa/ski

Add ski.d.ts
This commit is contained in:
Masahiro Wakame
2015-09-03 02:21:06 +09:00
2 changed files with 19 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
/// <reference path="./ski.d.ts" />
import { S, K, I } from 'ski';
var foo: string = S(a => b => a + b, a => a.split('').reverse().join(''), 'bar'); // barrab
var foo: string = K('bar')(); // bar
var foo: string = I('bar'); // bar
+10
View File
@@ -0,0 +1,10 @@
// Type definitions for ski 1.1.0
// Project: https://github.com/jden/ski
// Definitions by: Aya Morisawa <https://github.com/AyaMorisawa>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "ski" {
export function S<T, S, U>(x: (z: U) => (y: S) => T, y: (z: U) => S, z: U): T;
export function K<T, S>(x: T): (y?: S) => T
export function I<T>(x: T): T;
}