@shazow/whatsabi
    Preparing search index...

    Variable URL

    URL: {
        prototype: URL;
        canParse(url: string | URL, base?: string | URL): boolean;
        createObjectURL(obj: Blob | MediaSource): string;
        parse(url: string | URL, base?: string | URL): URL | null;
        revokeObjectURL(url: string): void;
        new (url: string | URL, base?: string | URL): URL;
    }

    Type Declaration

      • new (url: string | URL, base?: string | URL): URL
      • Parameters

        • url: string | URL
        • Optionalbase: string | URL

        Returns URL

    • prototype: URL
    • canParse: function
      • The URL.canParse() static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.

        MDN Reference

        Parameters

        • url: string | URL
        • Optionalbase: string | URL

        Returns boolean

    • createObjectURL: function
      • The createObjectURL() static method of the URL interface creates a string containing a blob URL pointing to the object given in the parameter.

        MDN Reference

        Parameters

        Returns string

    • parse: function
      • The URL.parse() static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.

        MDN Reference

        Parameters

        • url: string | URL
        • Optionalbase: string | URL

        Returns URL | null

    • revokeObjectURL: function
      • The revokeObjectURL() static method of the URL interface releases an existing object URL which was previously created by calling URL.createObjectURL().

        MDN Reference

        Parameters

        • url: string

        Returns void