Add ski.d.ts

This commit is contained in:
Aya Morisawa
2015-09-01 22:54:26 +09:00
parent af76bf4602
commit c451284d84
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;
}