Skip to content

Commit

Permalink
fix: Added the "Blob" type to the "rom" argument of the "launch" meth…
Browse files Browse the repository at this point in the history
…od since it accepts it. Also added to the docs
  • Loading branch information
iDarkSSJ committed Sep 11, 2024
1 parent 2653516 commit b3ac9f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/content/docs/apis/launch.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/types/nostalgist-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { RetroArchEmscriptenModuleOptions } from './retroarch-emscripten'

type MaybePromise<T> = Promise<T> | T

export type NostalgistOptionsFile = { fileContent: Blob; fileName: string } | File | string
export type NostalgistOptionsFile = { fileContent: Blob; fileName: string } | File | string | Blob

Check failure on line 7 in src/types/nostalgist-options.ts

View workflow job for this annotation

GitHub Actions / test / lint

Expected "Blob" to come before "string"
type NostalgistOptionsFiles = NostalgistOptionsFile | NostalgistOptionsFile[]

export interface NostalgistCoreDict {
Expand Down

0 comments on commit b3ac9f6

Please sign in to comment.