UNPKG

chordproject-parser

Version:

A TypeScript library for parsing and formatting ChordPro songs.

16 lines (15 loc) 555 B
import { IClonable } from "./IClonable"; import { Key } from "./Key"; import { MusicNote } from "./MusicNote"; export declare class Chord implements IClonable<Chord> { key: Key; type: string; bass: MusicNote | null; constructor(note: Key, type?: string, bass?: MusicNote | null); clone(): Chord; private static readonly chordRegex; static parse(text: string): Chord | undefined; toString(showType?: boolean, showBass?: boolean): string; toSimpleString(): string; equals(chord: Chord | null | undefined): boolean; }