music-codes
Version:
Small library for music codes (ISRC, ISWC, UPC)
18 lines • 578 B
TypeScript
import type { IterableCode } from './types.js';
export declare class ISWC implements IterableCode<ISWC> {
/** Work type */
readonly workType: string;
/** Code */
readonly code: number;
/** Check digit */
readonly check: number;
constructor(workType: string, code: number, check?: number);
first(): ISWC;
last(): ISWC;
previous(): ISWC;
next(): ISWC;
iterate(up?: boolean): IterableIterator<ISWC>;
toString(withDots?: boolean): string;
}
export declare function parseISWC(iswc: string): ISWC;
//# sourceMappingURL=iswc.d.ts.map