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
node_modules/typescript/lib/lib.dom.d.ts:22564
Properties
hash
• hash: string
Inherited from
URL.hash
Defined in
node_modules/typescript/lib/lib.dom.d.ts:22534
host
• host: string
Inherited from
URL.host
Defined in
node_modules/typescript/lib/lib.dom.d.ts:22536
hostname
• hostname: string
Inherited from
URL.hostname
Defined in
node_modules/typescript/lib/lib.dom.d.ts:22538
href
• href: string
Inherited from
URL.href
Defined in
node_modules/typescript/lib/lib.dom.d.ts:22540
origin
• Readonly
origin: string
Inherited from
URL.origin
Defined in
node_modules/typescript/lib/lib.dom.d.ts:22543
password
• password: string
Inherited from
URL.password
Defined in
node_modules/typescript/lib/lib.dom.d.ts:22545
pathname
• pathname: string
Inherited from
URL.pathname
Defined in
node_modules/typescript/lib/lib.dom.d.ts:22547
port
• port: string
Inherited from
URL.port
Defined in
node_modules/typescript/lib/lib.dom.d.ts:22549
protocol
• protocol: string
Inherited from
URL.protocol
Defined in
node_modules/typescript/lib/lib.dom.d.ts:22551
search
• search: string
Inherited from
URL.search
Defined in
node_modules/typescript/lib/lib.dom.d.ts:22553
searchParams
• Readonly
searchParams: URLSearchParams
Inherited from
URL.searchParams
Defined in
node_modules/typescript/lib/lib.dom.d.ts:22555
username
• username: string
Inherited from
URL.username
Defined in
node_modules/typescript/lib/lib.dom.d.ts:22557
Methods
toJSON
▸ toJSON(): string
Returns
string
Inherited from
URL.toJSON
Defined in
node_modules/typescript/lib/lib.dom.d.ts:22559
toString
▸ toString(): string
Returns
string
Inherited from
URL.toString
Defined in
node_modules/typescript/lib/lib.dom.d.ts:22541
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
node_modules/typescript/lib/lib.dom.d.ts:22568
revokeObjectURL
▸ revokeObjectURL(url
): void
Parameters
Name | Type |
---|---|
url | string |
Returns
void
Inherited from
URL.revokeObjectURL
Defined in
node_modules/typescript/lib/lib.dom.d.ts:22570