@sindresorhus/is
Advanced tools
Comparing version 1.1.0 to 1.2.0
/// <reference types="node" /> | ||
/// <reference lib="esnext" /> | ||
interface URLSearchParams { | ||
append(name: string, value: string): void; | ||
delete(name: string): void; | ||
get(name: string): string | null; | ||
getAll(name: string): string[]; | ||
has(name: string): boolean; | ||
set(name: string, value: string): void; | ||
sort(): void; | ||
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void; | ||
} | ||
declare var URLSearchParams: { | ||
prototype: URLSearchParams; | ||
new (init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams; | ||
}; | ||
interface URL { | ||
hash: string; | ||
host: string; | ||
hostname: string; | ||
href: string; | ||
readonly origin: string; | ||
password: string; | ||
pathname: string; | ||
port: string; | ||
protocol: string; | ||
search: string; | ||
readonly searchParams: URLSearchParams; | ||
username: string; | ||
toJSON(): string; | ||
} | ||
declare var URL: { | ||
prototype: URL; | ||
new (url: string, base?: string | URL): URL; | ||
createObjectURL(object: any): string; | ||
revokeObjectURL(url: string): void; | ||
}; | ||
/// <reference lib="dom" /> | ||
export declare type Class<T = unknown> = new (...args: any[]) => T; | ||
@@ -39,0 +5,0 @@ export declare const enum TypeName { |
"use strict"; | ||
/// <reference lib="esnext"/> | ||
/// <reference lib="dom"/> | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* ---- */ | ||
// TODO: Use the `URL` global when targeting Node.js 10 | ||
@@ -6,0 +6,0 @@ const URLGlobal = typeof URL === 'undefined' ? require('url').URL : URL; |
{ | ||
"name": "@sindresorhus/is", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Type check values", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43402
393