Clarify declaration file thing

This commit is contained in:
Vanilagy
2025-08-10 02:07:09 +02:00
parent c6227cea5a
commit e1c50ef16c
+1 -1
View File
@@ -34,6 +34,6 @@ You can also just include the library using a script tag in your HTML:
<script src="mediabunny.cjs"></script> <script src="mediabunny.cjs"></script>
``` ```
This will add a `Mediabunny` object to the global scope. This will add a `Mediabunny` object to the global scope. You can provide types for this global using `mediabunny.d.ts`.
You can download a built distribution file from the [releases page](https://github.com/Vanilagy/mediabunny/releases). Use the `*.cjs` builds for normal script tag inclusion, or the `*.mjs` builds for script tags with `type="module"` or direct imports via ESM. Including the `mediabunny.d.ts` declaration file in your TypeScript project will declare a global `Mediabunny` namespace. You can download a built distribution file from the [releases page](https://github.com/Vanilagy/mediabunny/releases). Use the `*.cjs` builds for normal script tag inclusion, or the `*.mjs` builds for script tags with `type="module"` or direct imports via ESM. Including the `mediabunny.d.ts` declaration file in your TypeScript project will declare a global `Mediabunny` namespace.