Downgrade @types/web-codecs for better type support, specify requirements in README and docs

This commit is contained in:
Vanilagy
2025-07-26 00:34:24 +02:00
parent d768f3c63b
commit 9bfa855f25
4 changed files with 14 additions and 8 deletions
+4
View File
@@ -17,6 +17,10 @@ bun add mediabunny
```
:::
::: info
Requires any JavaScript environment that can run ECMAScript 2021 or later. Mediabunny is expected to be run in modern browsers. For types, TypeScript 5.7 or later is required.
:::
Then, simply import it like this:
```ts
import { ... } from 'mediabunny'; // ESM