mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
24 lines
687 B
TypeScript
24 lines
687 B
TypeScript
// Type definitions for execall 1.0
|
|
// Project: https://github.com/sindresorhus/execall
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = execall;
|
|
|
|
/**
|
|
* Find multiple RegExp matches in a string. Instead of having to iterate over
|
|
* `RegExp#exec`, immutable, and with a nicer result format.
|
|
*
|
|
* @param re Regular expression to match against the `input`.
|
|
* @returns An array of matches.
|
|
*/
|
|
declare function execall(re: RegExp, input: string): execall.Match[];
|
|
|
|
declare namespace execall {
|
|
interface Match {
|
|
match: string;
|
|
sub: string[];
|
|
index: number;
|
|
}
|
|
}
|