ffmpegwasm / ffmpegwasm/ffmpeg.wasm

An index signature parameter type cannot be a union type

Open
#701 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
17.8k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
After yarn add @ffmpeg/ffmpeg @ffmpeg/util
I receive the following error just trying to build my angular app:

```
ERROR: node_modules/@ffmpeg/ffmpeg/dist/esm/types.d.ts:121:6 - error TS1337: An index signature parameter type cannot be a union type. Consider using a mapped object type instead.

121 [id: number | string]: (data: CallbackData) => void;
```

https://github.com/ffmpegwasm/ffmpeg.wasm/blob/147596bdb08848cf53af2cd1afb9e1c0745721fa/packages/ffmpeg/src/types.ts

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.