diff --git a/types/pixi.js/index.d.ts b/types/pixi.js/index.d.ts index a01d4d359a..7c71053da8 100644 --- a/types/pixi.js/index.d.ts +++ b/types/pixi.js/index.d.ts @@ -3129,7 +3129,7 @@ declare namespace PIXI { ): this; add(options: LoaderOptions, callback?: OnCompleteSignal): this; add( - resources: (LoaderOptions | string)[], + resources: Array, callback?: OnCompleteSignal ): this; add(...params: any[]): this; @@ -3239,14 +3239,14 @@ declare namespace PIXI { JSON, TEXT } - type IMetadata = { + interface IMetadata { loadElement?: | HTMLImageElement | HTMLAudioElement | HTMLVideoElement; skipSource?: boolean; mimeType?: string | string[]; - }; + } class Resource { constructor( name: string,