403Webshell
Server IP : 46.62.235.243  /  Your IP : 216.73.216.217
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/share/nodejs/p-each-series/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/nodejs/p-each-series/index.d.ts
declare const stop: unique symbol;

declare namespace pEachSeries {
	type StopSymbol = typeof stop;
}

declare const pEachSeries: {
	/**
	Iterate over promises serially.

	@param input - Iterated over serially in the `iterator` function.
	@param iterator - Return value is ignored unless it's `Promise`, then it's awaited before continuing with the next iteration.
	@returns A `Promise` that fulfills when all promises in `input` and ones returned from `iterator` are fulfilled, or rejects if any of the promises reject. The fulfillment value is the original `input`.

	@example
	```
	import pEachSeries = require('p-each-series');

	const keywords = [
		getTopKeyword(), //=> Promise
		'rainbow',
		'pony'
	];

	const iterator = async element => saveToDiskPromise(element);

	(async () => {
		console.log(await pEachSeries(keywords, iterator));
		//=> ['unicorn', 'rainbow', 'pony']
	})();
	```
	*/
	<ValueType>(
		input: Iterable<PromiseLike<ValueType> | ValueType>,
		iterator: (element: ValueType, index: number) => pEachSeries.StopSymbol | unknown
	): Promise<ValueType[]>;

	/**
	Stop iterating through items by returning `pEachSeries.stop` from the iterator function.

	@example
	```
	const pEachSeries = require('p-each-series');

	// Logs `a` and `b`.
	const result = await pEachSeries(['a', 'b', 'c'], value => {
		console.log(value);

		if (value === 'b') {
			return pEachSeries.stop;
		}
	});

	console.log(result);
	//=> ['a', 'b', 'c']
	```
	*/
	readonly stop: pEachSeries.StopSymbol;

	// TODO: Remove this for the next major release
	default: typeof pEachSeries;
};

export = pEachSeries;

Youez - 2016 - github.com/yon3zu
LinuXploit