Variable: URL
ts
URL: {
(url, base?): URL;
prototype: URL;
canParse: boolean;
createObjectURL: string;
parse: URL | null;
revokeObjectURL: void;
};Defined in: types/desktop-engine.d.ts:4305
Type Declaration
Throws a TypeError for an invalid URL
Parameters
| Parameter | Type |
|---|---|
url | string | URL |
base? | string | URL |
Returns
| Name | Type | Description | Defined in |
|---|---|---|---|
prototype | URL | - | types/desktop-engine.d.ts:4323 |
canParse() | (url, base?) => boolean | - | types/desktop-engine.d.ts:4326 |
createObjectURL() | (blob) => string | A blob:null/<uuid> URL for the blob: fetch, XMLHttpRequest and the src of CanvasImage, Image and Video load it. It lasts until revoked or until the content stops | types/desktop-engine.d.ts:4333 |
parse() | (url, base?) => URL | null | null for an invalid URL | types/desktop-engine.d.ts:4328 |
revokeObjectURL() | (url) => void | fetch can't load it anymore; images and videos that already loaded it keep working | types/desktop-engine.d.ts:4335 |
