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.
export interface Output {
start: number;
end: number;
pre: string;
body: string;
post: string;
}
export default function balanced(a: string | RegExp, b: string | RegExp, str: string): Output | undefined;
export function range(a: string | RegExp, b: string | RegExp, str: string): [number, number] | undefined;
Additional Details
- Last updated: Tue, 10 Oct 2023 20:06:06 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Piotr Błażejewicz.