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: Mon, 06 Nov 2023 22:41:04 GMT
- Dependencies: none
Credits
These definitions were written by Piotr Błażejewicz.