UNPKG

689 BTypeScriptView Raw
1export * from "./index";
2declare module "./index" {
3 interface List<A> {
4 "fantasy-land/equals"(l: List<A>): boolean;
5 "fantasy-land/map"<B>(f: (a: A) => B): List<B>;
6 "fantasy-land/of"<B>(b: B): List<B>;
7 "fantasy-land/ap"<B>(f: List<(a: A) => B>): List<B>;
8 "fantasy-land/chain"<B>(f: (a: A) => List<B>): List<B>;
9 "fantasy-land/filter"(predicate: (a: A) => boolean): List<A>;
10 "fantasy-land/empty"(): List<any>;
11 "fantasy-land/concat"(right: List<A>): List<A>;
12 "fantasy-land/reduce"<B>(f: (acc: B, value: A) => B, initial: B): B;
13 "fantasy-land/traverse"<A, B>(of: Of, f: (a: A) => Applicative<B>): any;
14 }
15}
16
\No newline at end of file