Installation
npm install --save @types/balanced-match
Summary
This package contains type definitions for balanced-match (https://github.com/juliangruber/balanced-match).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/balanced-match.
interface Output {
start: number;
end: number;
pre: string;
body: string;
post: string;
}
declare function balanced(a: string | RegExp, b: string | RegExp, str: string): Output | void;
declare namespace balanced {
function range(a: string | RegExp, b: string | RegExp, str: string): Output | void;
}
export = balanced;
Additional Details
- Last updated: Thu, 23 Dec 2021 23:34:18 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Piotr Błażejewicz.