Interface ResolveURLParser

Format for url parser, will test a string and if it pass will then parse it, turning it into an ResolvedAsset

Memberof

PIXI

interface ResolveURLParser {
    config?: Record<string, any>;
    extension?: ExtensionMetadata;
    parse: ((value) => ResolvedAsset<any>);
    test: ((url) => boolean);
}

Properties

config?: Record<string, any>

A config to adjust the parser

extension?: ExtensionMetadata
parse: ((value) => ResolvedAsset<any>)

the function that will convert the url into an object

Type declaration

test: ((url) => boolean)

the test to perform on the url to determine if it should be parsed

Type declaration

    • (url): boolean
    • Parameters

      • url: string

      Returns boolean

Generated using TypeDoc