From b3ac9f65652f9f3ff5107b8fd5ef937eb7358cf1 Mon Sep 17 00:00:00 2001 From: idarkssj Date: Wed, 11 Sep 2024 16:56:08 -0500 Subject: [PATCH] fix: Added the "Blob" type to the "rom" argument of the "launch" method since it accepts it. Also added to the docs --- docs/src/content/docs/apis/launch.md | 2 +- src/types/nostalgist-options.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/content/docs/apis/launch.md b/docs/src/content/docs/apis/launch.md index 2e00724..d8c1996 100644 --- a/docs/src/content/docs/apis/launch.md +++ b/docs/src/content/docs/apis/launch.md @@ -103,7 +103,7 @@ const nostalgist = await Nostalgist.launch({ + #### `rom` - **type:** `string | File | { fileName: string; fileContent: Blob } | Array` + **type:** `string | File | { fileName: string; fileContent: Blob } | Array | Blob` The game ROM file. diff --git a/src/types/nostalgist-options.ts b/src/types/nostalgist-options.ts index 00d4177..fe23e39 100644 --- a/src/types/nostalgist-options.ts +++ b/src/types/nostalgist-options.ts @@ -4,7 +4,7 @@ import type { RetroArchEmscriptenModuleOptions } from './retroarch-emscripten' type MaybePromise = Promise | T -export type NostalgistOptionsFile = { fileContent: Blob; fileName: string } | File | string +export type NostalgistOptionsFile = { fileContent: Blob; fileName: string } | File | string | Blob type NostalgistOptionsFiles = NostalgistOptionsFile | NostalgistOptionsFile[] export interface NostalgistCoreDict {