mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-24 09:42:43 +00:00
* 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
20 lines
982 B
TypeScript
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;
|