UNPKG

@useapi/midjourney-api

Version:

TypeScript client library for Midjourney API by useapi.net

11 lines (10 loc) 478 B
export declare class Observable<T> { private promise; constructor(promise: Promise<T>); toPromise(): Promise<T>; pipe<S>(callback: (value: T) => S | Promise<S>): Observable<S>; } export declare function from<_>(promise: Promise<any>): Observable<any>; export declare function of<T>(value: T): Observable<T>; export declare function mergeMap<T, S>(callback: (value: T) => Observable<S>): (value: T) => Promise<S>; export declare function map(callback: any): any;