Class: URL
Hierarchy
- 
URL↳ URL
Constructors
constructor
• new URL(url, base?): URL
Parameters
| Name | Type | 
|---|---|
| url | string|URL | 
| base? | string|URL | 
Returns
Inherited from
URL.constructor
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22560
Properties
hash
• hash: string
Inherited from
URL.hash
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22530
host
• host: string
Inherited from
URL.host
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22532
hostname
• hostname: string
Inherited from
URL.hostname
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22534
href
• href: string
Inherited from
URL.href
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22536
origin
• Readonly origin: string
Inherited from
URL.origin
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22539
password
• password: string
Inherited from
URL.password
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22541
pathname
• pathname: string
Inherited from
URL.pathname
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22543
port
• port: string
Inherited from
URL.port
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22545
protocol
• protocol: string
Inherited from
URL.protocol
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22547
search
• search: string
Inherited from
URL.search
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22549
searchParams
• Readonly searchParams: URLSearchParams
Inherited from
URL.searchParams
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22551
username
• username: string
Inherited from
URL.username
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22553
Methods
toJSON
▸ toJSON(): string
Returns
string
Inherited from
URL.toJSON
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22555
toString
▸ toString(): string
Returns
string
Inherited from
URL.toString
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22537
canParse
▸ canParse(str): boolean
Parameters
| Name | Type | 
|---|---|
| str | string | 
Returns
boolean
Overrides
URL.canParse
Defined in
packages/common/src/utils.ts:35
createObjectURL
▸ createObjectURL(obj): string
Parameters
| Name | Type | 
|---|---|
| obj | Blob|MediaSource | 
Returns
string
Inherited from
URL.createObjectURL
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22564
revokeObjectURL
▸ revokeObjectURL(url): void
Parameters
| Name | Type | 
|---|---|
| url | string | 
Returns
void
Inherited from
URL.revokeObjectURL
Defined in
docs/node_modules/typescript/lib/lib.dom.d.ts:22566