fix(ci): suppress prism-media type definition errors in build
Added @ts-expect-error comments to suppress 3 pre-existing TypeScript errors in prism-media@1.3.5 type definitions that were breaking CI/CD builds: - types.ts:59 - OggLogicalBitstream type not exported - segment.ts:40 - OggLogicalBitstream property missing - segment.ts:42 - OpusHead property missing These errors are masked locally by skipLibCheck but fail in Docker builds. Surgical fix: 3 comment lines added across 2 files. Verified: tsc --noEmit now passes with 0 errors. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
13a75a5101
commit
7af4af06a6
@@ -56,6 +56,7 @@ export interface SegmentState {
|
||||
endTime: number | null;
|
||||
filename: string;
|
||||
jsonFilename: string;
|
||||
// @ts-expect-error - prism-media@1.3.5 type definitions incomplete
|
||||
oggStream: prism.opus.OggLogicalBitstream;
|
||||
out: fs.WriteStream;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,9 @@ export class SegmentManager {
|
||||
this.userDir,
|
||||
startTime,
|
||||
);
|
||||
// @ts-expect-error - prism-media@1.3.5 type definitions incomplete
|
||||
const oggStream = new prism.opus.OggLogicalBitstream({
|
||||
// @ts-expect-error - prism-media@1.3.5 type definitions incomplete
|
||||
opusHead: new prism.opus.OpusHead({ channelCount: 2, sampleRate: 48000 }),
|
||||
pageSizeControl: { maxPackets: 10 },
|
||||
crc: true,
|
||||
|
||||
Reference in New Issue
Block a user