DefinitelyTyped/types/fxjs/index.d.ts
load28 79a1381357
Fxjs (#42797)
* add fxjs type

* add fxjs type

* add test

* add project

* add fxjs

* add file

* add

* add map, filter, find, flat, flatMap, every, delay, log

* add test

* tsconfig modify

* add fxjs-tests
2020-03-04 09:43:34 -08:00

20 lines
982 B
TypeScript

// Type definitions for fxjs 0.15
// Project: https://github.com/marpple/FxJS.git
// Definitions by: minyeong <https://github.com/load28>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.8
export function go(..._: any[]): any[];
export function add(a: any, b: any): any;
export function map(f: Function, iter: (Iterator<any> | Iterable<any>)): any;
export function filter(f: Function, iter: (Iterator<any> | Iterable<any>)): any;
export function find(f: Function, iter: (Iterator<any> | Iterable<any>)): any;
export function flat(iter: Iterable<any>, dep?: number): any;
export function flatMap(f: Function, iter: (Iterator<any> | Iterable<any>)): any;
export function every(f: EverF, iter: (Iterator<any> | Iterable<any>)): boolean;
export function delay(time: number, val: any): any;
export function range(start: number, stop?: number, step?: number): any;
export function log(..._: any): any;
export type EverF = (_: any) => boolean;