Interface IResourcePlugin<R, RO>

Shape of supported resource plugins

PIXI

interface IResourcePlugin<R, RO> {
    new IResourcePlugin(source: any, options?: RO): R;
    test(source: unknown, extension: string): boolean;
}

Type Parameters

  • R
  • RO

Constructors

Methods

Constructors

  • Parameters

    • source: any
    • Optionaloptions: RO

    Returns R

Methods

  • Parameters

    • source: unknown
    • extension: string

    Returns boolean