mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
Fix typecheck, lint and build
This commit is contained in:
@@ -40,6 +40,7 @@ export default tseslint.config(
|
|||||||
'packages/mp3-encoder/build',
|
'packages/mp3-encoder/build',
|
||||||
'eslint.config.mjs',
|
'eslint.config.mjs',
|
||||||
'docs/.vitepress/cache',
|
'docs/.vitepress/cache',
|
||||||
|
'test/public',
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@
|
|||||||
"test": "npx vitest --run",
|
"test": "npx vitest --run",
|
||||||
"test-node": "npm run test node/",
|
"test-node": "npm run test node/",
|
||||||
"test-browser": "npm run test browser/",
|
"test-browser": "npm run test browser/",
|
||||||
"check": "rm -rf dist/modules && tsc -p src && tsc -p packages/mp3-encoder/src --noEmit && tsc -p tsconfig.vitest.json --noEmit && tsc -p scripts --noEmit && tsc -p tsconfig.vite.json --noEmit",
|
"check": "rm -rf dist/modules && tsc -p src --stripInternal false && tsc -p packages/mp3-encoder/src --noEmit && tsc -p tsconfig.vitest.json --noEmit && tsc -p scripts --noEmit && tsc -p tsconfig.vite.json --noEmit",
|
||||||
"check-docblocks": "tsx scripts/check-docblocks.ts dist/mediabunny.d.ts",
|
"check-docblocks": "tsx scripts/check-docblocks.ts dist/mediabunny.d.ts",
|
||||||
"docs:dev": "vitepress dev docs",
|
"docs:dev": "vitepress dev docs",
|
||||||
"docs:build": "npm run build && npm run docs:generate && vitepress build docs && npm run examples:build && cp dist/mediabunny.d.ts dist-docs/",
|
"docs:build": "npm run build && npm run docs:generate && vitepress build docs && npm run examples:build && cp dist/mediabunny.d.ts dist-docs/",
|
||||||
|
|||||||
@@ -479,6 +479,14 @@ export class AdtsInputFormat extends InputFormat {
|
|||||||
|
|
||||||
const TS_PACKET_SIZE = 188;
|
const TS_PACKET_SIZE = 188;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MPEG Transport Stream (MPEG-TS) file format.
|
||||||
|
*
|
||||||
|
* Do not instantiate this class; use the {@link MPEG_TS} singleton instead.
|
||||||
|
*
|
||||||
|
* @group Input formats
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
export class MpegTsInputFormat extends InputFormat {
|
export class MpegTsInputFormat extends InputFormat {
|
||||||
/** @internal */
|
/** @internal */
|
||||||
async _canReadInput(input: Input) {
|
async _canReadInput(input: Input) {
|
||||||
@@ -573,6 +581,11 @@ export const ADTS = /* #__PURE__ */ new AdtsInputFormat();
|
|||||||
*/
|
*/
|
||||||
export const FLAC = /* #__PURE__ */ new FlacInputFormat();
|
export const FLAC = /* #__PURE__ */ new FlacInputFormat();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MPEG-TS input format singleton.
|
||||||
|
* @group Input formats
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
export const MPEG_TS = /* #__PURE__ */ new MpegTsInputFormat();
|
export const MPEG_TS = /* #__PURE__ */ new MpegTsInputFormat();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
/*!
|
||||||
|
* Copyright (c) 2025-present, Vanilagy and contributors
|
||||||
|
*
|
||||||
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||||
|
*/
|
||||||
|
|
||||||
import { SAMPLES_PER_AAC_FRAME } from '../adts/adts-demuxer';
|
import { SAMPLES_PER_AAC_FRAME } from '../adts/adts-demuxer';
|
||||||
import { MAX_FRAME_HEADER_SIZE, readAdtsFrameHeader } from '../adts/adts-reader';
|
import { MAX_FRAME_HEADER_SIZE, readAdtsFrameHeader } from '../adts/adts-reader';
|
||||||
import {
|
import {
|
||||||
|
|||||||
Reference in New Issue
Block a user