Skip to content

Commit 9af7928

Browse files
authored
🤖 Merge PR DefinitelyTyped#72653 Fix constructor parameters for m3u8-parser by @cubicme
1 parent 4deaed8 commit 9af7928

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

types/m3u8-parser/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export interface Manifest {
124124

125125
export class Parser extends Stream {
126126
constructor(options?: {
127-
url?: string;
127+
uri?: string;
128128
mainDefinitions?: Record<string, string>;
129129
});
130130
lineStream: LineStream;

types/m3u8-parser/m3u8-parser-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ parser.end();
1010
const parsedManifest = parser.manifest.playlists?.[0].contentProtection?.["com.apple.fps.1_0"]?.attributes.resoltion;
1111

1212
const parser2 = new Parser({
13-
url: "https://exmaple.com/video.m3u8?param_a=34&param_b=abc",
13+
uri: "https://exmaple.com/video.m3u8?param_a=34&param_b=abc",
1414
mainDefinitions: {
1515
param_c: "def",
1616
},

0 commit comments

Comments
 (0)