ov-components: update package dependencies and TypeScript configurations

- Added @types/dom-mediacapture-transform to package.json for type definitions.
- Changed hoveringTimeout type in StreamComponent to ReturnType<typeof setTimeout> for better type safety.
- Updated TypeScript lib version from ES2020 to ES2021 in tsconfig files for improved features.
- Included dom-mediacapture-transform in types for TypeScript configurations across various tsconfig files.
- Removed empty types array in tsconfig.app.json to ensure proper type checking.
- Adjusted skipLibCheck settings in tsconfig files to improve compatibility with Livekit track processors.
master
Carlos Santos 2025-05-05 12:09:19 +02:00
parent 8ce155df6a
commit 760cf604eb
8 changed files with 2251 additions and 1703 deletions

File diff suppressed because it is too large Load Diff

View File

@ -10,6 +10,7 @@
"@angular/platform-browser-dynamic": "19.2.8",
"@angular/router": "19.2.8",
"@livekit/track-processors": "^0.5.6",
"@types/dom-mediacapture-transform": "^0.1.11",
"autolinker": "4.0.0",
"livekit-client": "2.11.4",
"rxjs": "7.8.1",

View File

@ -68,7 +68,7 @@ export class StreamComponent implements OnInit, OnDestroy {
/**
* @ignore
*/
hoveringTimeout: NodeJS.Timeout;
hoveringTimeout: ReturnType<typeof setTimeout>;
/**
* @ignore

View File

@ -5,7 +5,7 @@
"outDir": "../../dist/openvidu-components-angular",
"module": "esnext",
"moduleResolution": "node",
"lib": ["ES2020", "DOM"],
"lib": ["ES2021", "DOM"],
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"declaration": true,
@ -13,9 +13,10 @@
"declarationMap": true,
"inlineSources": true,
"resolveJsonModule": true,
"types": ["jasmine", "node"],
"types": ["jasmine", "node", "dom-mediacapture-transform"],
"allowSyntheticDefaultImports": true,
"skipLibCheck": true // Livekit track processors fails with typescript types checking
"skipDefaultLibCheck": true // Livekit track processors fails with typescript types checking
//"skipLibCheck": true // Livekit track processors fails with typescript types checking
},
"exclude": ["node_modules", "src/test.ts", "**/*.spec.ts", "**/*.mock.ts"]
}

View File

@ -3,14 +3,13 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": [
"jasmine",
"node"
],
"lib": ["ES2021", "DOM"],
"types": ["jasmine", "node", "dom-mediacapture-transform"],
"moduleResolution": "node",
"experimentalDecorators": true,
"resolveJsonModule": true,
"skipLibCheck": true // Livekit track processors fails with typescript types checking
"skipDefaultLibCheck": true // Livekit track processors fails with typescript types checking
//"skipLibCheck": true // Livekit track processors fails with typescript types checking
},
"files": [
"src/test.ts"

View File

@ -2,7 +2,6 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
"types": [],
"paths": {
"openvidu-components-angular": [
"dist/openvidu-components-angular"

View File

@ -14,6 +14,8 @@
"module": "es2020",
"lib": ["es2021", "dom"],
"allowSyntheticDefaultImports": true,
"skipLibCheck": true // Livekit track processors fails with typescript types checking
"types": ["dom-mediacapture-transform"],
"skipDefaultLibCheck": true, // Livekit track processors fails with typescript types checking
///"skipLibCheck": true // Livekit track processors fails with typescript types checking
}
}

View File

@ -3,9 +3,6 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "./out-tsc/spec",
"types": [
"jasmine", "node"
]
},
"files": [
"src/test.ts"