mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
This commit is contained in:
Vendored
+5
-2
@@ -2361,6 +2361,9 @@ declare module "url" {
|
||||
export function format(urlObject: UrlObject | string): string;
|
||||
export function resolve(from: string, to: string): string;
|
||||
|
||||
export function domainToASCII(domain: string): string;
|
||||
export function domainToUnicode(domain: string): string;
|
||||
|
||||
export interface URLFormatOptions {
|
||||
auth?: boolean;
|
||||
fragment?: boolean;
|
||||
@@ -5612,8 +5615,8 @@ declare module "assert" {
|
||||
});
|
||||
}
|
||||
|
||||
export function fail(message: string): void;
|
||||
export function fail(actual: any, expected: any, message?: string, operator?: string): void;
|
||||
export function fail(message: string): never;
|
||||
export function fail(actual: any, expected: any, message?: string, operator?: string): never;
|
||||
export function ok(value: any, message?: string): void;
|
||||
export function equal(actual: any, expected: any, message?: string): void;
|
||||
export function notEqual(actual: any, expected: any, message?: string): void;
|
||||
|
||||
@@ -635,6 +635,11 @@ namespace url_tests {
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const ascii: string = url.domainToASCII('español.com');
|
||||
const unicode: string = url.domainToUnicode('xn--espaol-zwa.com');
|
||||
}
|
||||
|
||||
{
|
||||
let myURL = new url.URL('https://theuser:thepwd@example.org:81/foo/path?query=string#bar');
|
||||
assert.equal(myURL.hash, '#bar');
|
||||
|
||||
Vendored
+1
-1
@@ -1870,7 +1870,7 @@ declare module "assert" {
|
||||
operator?: string; stackStartFunction?: Function});
|
||||
}
|
||||
|
||||
export function fail(actual?: any, expected?: any, message?: string, operator?: string): void;
|
||||
export function fail(actual?: any, expected?: any, message?: string, operator?: string): never;
|
||||
export function ok(value: any, message?: string): void;
|
||||
export function equal(actual: any, expected: any, message?: string): void;
|
||||
export function notEqual(actual: any, expected: any, message?: string): void;
|
||||
|
||||
Vendored
+1
-1
@@ -2448,7 +2448,7 @@ declare module "assert" {
|
||||
operator?: string; stackStartFunction?: Function});
|
||||
}
|
||||
|
||||
export function fail(actual: any, expected: any, message?: string, operator?: string): void;
|
||||
export function fail(actual: any, expected: any, message?: string, operator?: string): never;
|
||||
export function ok(value: any, message?: string): void;
|
||||
export function equal(actual: any, expected: any, message?: string): void;
|
||||
export function notEqual(actual: any, expected: any, message?: string): void;
|
||||
|
||||
Vendored
+1
-1
@@ -3876,7 +3876,7 @@ declare module "assert" {
|
||||
});
|
||||
}
|
||||
|
||||
export function fail(actual: any, expected: any, message?: string, operator?: string): void;
|
||||
export function fail(actual: any, expected: any, message?: string, operator?: string): never;
|
||||
export function ok(value: any, message?: string): void;
|
||||
export function equal(actual: any, expected: any, message?: string): void;
|
||||
export function notEqual(actual: any, expected: any, message?: string): void;
|
||||
|
||||
Vendored
+4
-1
@@ -2024,6 +2024,9 @@ declare module "url" {
|
||||
export function format(urlObject: UrlObject | string): string;
|
||||
export function resolve(from: string, to: string): string;
|
||||
|
||||
export function domainToASCII(domain: string): string;
|
||||
export function domainToUnicode(domain: string): string;
|
||||
|
||||
export interface URLFormatOptions {
|
||||
auth?: boolean;
|
||||
fragment?: boolean;
|
||||
@@ -3981,7 +3984,7 @@ declare module "assert" {
|
||||
});
|
||||
}
|
||||
|
||||
export function fail(actual: any, expected: any, message?: string, operator?: string): void;
|
||||
export function fail(actual: any, expected: any, message?: string, operator?: string): never;
|
||||
export function ok(value: any, message?: string): void;
|
||||
export function equal(actual: any, expected: any, message?: string): void;
|
||||
export function notEqual(actual: any, expected: any, message?: string): void;
|
||||
|
||||
@@ -475,6 +475,11 @@ namespace url_tests {
|
||||
assert.equal(helloUrl.query.hello, 'world');
|
||||
}
|
||||
|
||||
{
|
||||
const ascii: string = url.domainToASCII('español.com');
|
||||
const unicode: string = url.domainToUnicode('xn--espaol-zwa.com');
|
||||
}
|
||||
|
||||
{
|
||||
let myURL = new url.URL('https://theuser:thepwd@example.org:81/foo/path?query=string#bar');
|
||||
assert.equal(myURL.hash, '#bar');
|
||||
|
||||
Vendored
+5
-2
@@ -2351,6 +2351,9 @@ declare module "url" {
|
||||
export function format(urlObject: UrlObject | string): string;
|
||||
export function resolve(from: string, to: string): string;
|
||||
|
||||
export function domainToASCII(domain: string): string;
|
||||
export function domainToUnicode(domain: string): string;
|
||||
|
||||
export interface URLFormatOptions {
|
||||
auth?: boolean;
|
||||
fragment?: boolean;
|
||||
@@ -5583,8 +5586,8 @@ declare module "assert" {
|
||||
});
|
||||
}
|
||||
|
||||
export function fail(message: string): void;
|
||||
export function fail(actual: any, expected: any, message?: string, operator?: string): void;
|
||||
export function fail(message: string): never;
|
||||
export function fail(actual: any, expected: any, message?: string, operator?: string): never;
|
||||
export function ok(value: any, message?: string): void;
|
||||
export function equal(actual: any, expected: any, message?: string): void;
|
||||
export function notEqual(actual: any, expected: any, message?: string): void;
|
||||
|
||||
@@ -609,6 +609,11 @@ namespace url_tests {
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const ascii: string = url.domainToASCII('español.com');
|
||||
const unicode: string = url.domainToUnicode('xn--espaol-zwa.com');
|
||||
}
|
||||
|
||||
{
|
||||
let myURL = new url.URL('https://theuser:thepwd@example.org:81/foo/path?query=string#bar');
|
||||
assert.equal(myURL.hash, '#bar');
|
||||
|
||||
Reference in New Issue
Block a user