Comparing version 0.0.4 to 0.0.5
@@ -13,7 +13,7 @@ export interface Const<T> { | ||
} | ||
export interface GroupBy<T, K, V> { | ||
export interface GroupBy<T, I> { | ||
readonly type: "groupBy"; | ||
readonly input: Bag<[K, V]>; | ||
readonly reduce: (a: V, b: V) => V; | ||
readonly flatMap: (v: [K, V]) => Iterable<T>; | ||
readonly input: Bag<[string, I]>; | ||
readonly reduce: (a: I, b: I) => I; | ||
readonly flatMap: (v: [string, I]) => Iterable<T>; | ||
} | ||
@@ -30,8 +30,8 @@ export interface Product<T, A, B> { | ||
} | ||
export declare type Bag<T> = Const<T> | ExternalInput<T> | FlatMap<T, any> | GroupBy<T, any, any> | Product<T, any, any> | Merge<T>; | ||
export declare type Bag<T> = Const<T> | ExternalInput<T> | FlatMap<T, any> | GroupBy<T, any> | Product<T, any, any> | Merge<T>; | ||
export declare function const_<T>(value: T): Const<T>; | ||
export declare function externalInput<T>(): ExternalInput<T>; | ||
export declare function flatMap<T, I>(input: Bag<I>, func: (v: I) => Iterable<T>): FlatMap<T, I>; | ||
export declare function groupBy<T, K, V>(input: Bag<[K, V]>, reduce: (a: V, b: V) => V, flatMap: (v: [K, V]) => Iterable<T>): GroupBy<T, K, V>; | ||
export declare function groupBy<T, I>(input: Bag<[string, I]>, reduce: (a: I, b: I) => I, flatMap: (v: [string, I]) => Iterable<T>): GroupBy<T, I>; | ||
export declare function product<T, A, B>(inputA: Bag<A>, inputB: Bag<B>, func: (a: A, b: B) => Iterable<T>): Product<T, A, B>; | ||
export declare function merge<T>(input: Bag<T>[]): Merge<T>; |
{ | ||
"name": "aliq", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "ALIQ (Abstract Language Integrated Query) for JavaScript and TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14892