Files
DefinitelyTyped/types/subsume/index.d.ts
2017-08-11 10:23:09 -07:00

27 lines
640 B
TypeScript

// Type definitions for subsume 1.0
// Project: https://github.com/sindresorhus/subsume#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = Subsume;
declare class Subsume {
static parse(text: string, id: string): Subsume.ParseResult;
id: string;
prefix: string;
postfix: string;
regex: RegExp;
constructor(id?: string);
compose(text: string): string;
parse(text: string): Subsume.ParseResult;
}
declare namespace Subsume {
interface ParseResult {
data?: string;
rest: string;
}
}