X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;ds=sidebyside;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Frxjs%2Finternal%2Fobservable%2Fpairs.d.ts;fp=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Frxjs%2Finternal%2Fobservable%2Fpairs.d.ts;h=5e915e65a5a594806daf7257b9a53f2a36790b38;hb=3aba54c891969552833dbc350b3139e944e17a97;hp=0000000000000000000000000000000000000000;hpb=1def8ecce8e6f3aa32e6978d0ba7846a99b8de34;p=dotfiles%2F.git diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/internal/observable/pairs.d.ts b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/internal/observable/pairs.d.ts new file mode 100644 index 00000000..5e915e65 --- /dev/null +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/internal/observable/pairs.d.ts @@ -0,0 +1,61 @@ +import { Observable } from '../Observable'; +import { SchedulerAction, SchedulerLike } from '../types'; +import { Subscriber } from '../Subscriber'; +import { Subscription } from '../Subscription'; +/** + * Convert an object into an Observable of `[key, value]` pairs. + * + * Turn entries of an object into a stream. + * + * + * + * `pairs` takes an arbitrary object and returns an Observable that emits arrays. Each + * emitted array has exactly two elements - the first is a key from the object + * and the second is a value corresponding to that key. Keys are extracted from + * an object via `Object.keys` function, which means that they will be only + * enumerable keys that are present on an object directly - not ones inherited + * via prototype chain. + * + * By default these arrays are emitted synchronously. To change that you can + * pass a {@link SchedulerLike} as a second argument to `pairs`. + * + * @example Converts a javascript object to an Observable + * ```ts + * import { pairs } from 'rxjs'; + * + * const obj = { + * foo: 42, + * bar: 56, + * baz: 78 + * }; + * + * pairs(obj) + * .subscribe( + * value => console.log(value), + * err => {}, + * () => console.log('the end!') + * ); + * + * // Logs: + * // ["foo", 42], + * // ["bar", 56], + * // ["baz", 78], + * // "the end!" + * ``` + * + * @param {Object} obj The object to inspect and turn into an + * Observable sequence. + * @param {Scheduler} [scheduler] An optional IScheduler to schedule + * when resulting Observable will emit values. + * @returns {(Observable>)} An observable sequence of + * [key, value] pairs from the object. + */ +export declare function pairs(obj: Object, scheduler?: SchedulerLike): Observable<[string, T]>; +/** @internal */ +export declare function dispatch(this: SchedulerAction, state: { + keys: string[]; + index: number; + subscriber: Subscriber<[string, T]>; + subscription: Subscription; + obj: Object; +}): void;