Interface ResolveURLParser

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

PIXI

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

Properties

config?: Record<string, any>

A config to adjust the parser

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

the function that will convert the url into an object

test: (url: string) => boolean

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