From e1c50ef16ce5c035bd0ee58594304233c3cb2d3b Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Sun, 10 Aug 2025 02:07:09 +0200 Subject: [PATCH] Clarify declaration file thing --- docs/guide/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/installation.md b/docs/guide/installation.md index 8ab90bf..fb08176 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -34,6 +34,6 @@ You can also just include the library using a script tag in your HTML: ``` -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. \ No newline at end of file