@stringsync/vexml
Version:
MusicXML to Vexflow
6 lines (5 loc) • 425 B
TypeScript
export declare function assertNotNull<T>(value: T, msg?: string): asserts value is Exclude<T, null>;
export declare function assertNull(value: any, msg?: string): asserts value is null;
export declare function assertDefined<T>(value: T, msg?: string): asserts value is Exclude<T, undefined>;
export declare function assert(condition: any, msg?: string): asserts condition;
export declare function assertUnreachable(): never;