Skip to content

Commit daced67

Browse files
authored
fix: Fix the wrong type of stringify() (#152)
1 parent 9550d10 commit daced67

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stringify.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ function buildParts(lines: LineArray, parts: PartialSegment[]) {
467467
return hint;
468468
}
469469

470-
function stringify(playlist: MasterPlaylist | MediaPlaylist, postProcess: PostProcess | undefined): string {
470+
function stringify(playlist: MasterPlaylist | MediaPlaylist, postProcess?: PostProcess): string {
471471
utils.PARAMCHECK(playlist);
472472
utils.ASSERT('Not a playlist', playlist.type === 'playlist');
473473
const lines = new LineArray(playlist.uri);

types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,6 @@ export type TagParam =
520520
export type UserAttribute = number | string | Uint8Array;
521521

522522
export type PostProcess = {
523-
segmentProcessor: ((lines: string[], start: number, end: number, segment: Segment, i: number) => undefined) | undefined;
524-
variantProcessor: ((lines: string[], start: number, end: number, variant: Variant, i: number) => undefined) | undefined;
523+
segmentProcessor: ((lines: string[], start: number, end: number, segment: Segment, i: number) => void) | undefined;
524+
variantProcessor: ((lines: string[], start: number, end: number, variant: Variant, i: number) => void) | undefined;
525525
};

0 commit comments

Comments
 (0)