mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-14 03:30:18 +00:00
15 lines
445 B
TypeScript
15 lines
445 B
TypeScript
|
/// <reference types="node" />
|
||
|
import { Writable } from 'stream';
|
||
|
export interface Item {
|
||
|
url: string;
|
||
|
seq: number;
|
||
|
duration: number;
|
||
|
time?: number;
|
||
|
}
|
||
|
export interface Parser extends Writable {
|
||
|
on(event: 'item', listener: (item: Item) => boolean): this;
|
||
|
on(event: string | symbol, listener: (...args: any[]) => any): this;
|
||
|
emit(event: 'item', item: Item): boolean;
|
||
|
emit(event: string, ...args: any[]): boolean;
|
||
|
}
|