@ozarkoc/chordpro-parser
Version:
A browser-friendly bundled version of chordproject-parser
15 lines (14 loc) • 547 B
TypeScript
import { Chord } from "./Chord";
import { IClonable } from "./IClonable";
export declare class ChordLyricsPair implements IClonable<ChordLyricsPair> {
chord: Chord | null;
lyrics: string;
text: string | null;
constructor(lyrics: string, chord?: Chord | null, text?: string | null);
clone(): ChordLyricsPair;
hasChord(): boolean;
hasText(): boolean;
static parse(text: string): [boolean, ChordLyricsPair];
static parseLine(line: string): [boolean, ChordLyricsPair][];
private static createChordLyricsPair;
}