@vertexvis/utils
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -19,3 +19,3 @@ /** | ||
*/ | ||
export declare function timeout<T>(ms: number): Promise<void>; | ||
export declare function timeout(ms: number): Promise<void>; | ||
/** | ||
@@ -22,0 +22,0 @@ * Assigns a timeout to the given promise, where if the promise doesn't complete |
@@ -680,2 +680,3 @@ 'use strict'; | ||
}; | ||
/* eslint-enable @typescript-eslint/no-explicit-any */ | ||
@@ -682,0 +683,0 @@ var uri = /*#__PURE__*/Object.freeze({ |
@@ -676,2 +676,3 @@ import { __awaiter, __generator, __assign, __spreadArrays } from 'tslib'; | ||
}; | ||
/* eslint-enable @typescript-eslint/no-explicit-any */ | ||
@@ -678,0 +679,0 @@ var uri = /*#__PURE__*/Object.freeze({ |
@@ -683,2 +683,3 @@ 'use strict'; | ||
}; | ||
/* eslint-enable @typescript-eslint/no-explicit-any */ | ||
@@ -685,0 +686,0 @@ var uri = /*#__PURE__*/Object.freeze({ |
@@ -677,2 +677,3 @@ import { __awaiter, __generator, __assign, __spreadArrays } from 'tslib'; | ||
}; | ||
/* eslint-enable @typescript-eslint/no-explicit-any */ | ||
@@ -679,0 +680,0 @@ var uri = /*#__PURE__*/Object.freeze({ |
@@ -14,3 +14,3 @@ /** | ||
*/ | ||
export declare type DeepPartial<T> = T extends object ? { | ||
export declare type DeepPartial<T> = T extends Record<string, unknown> ? { | ||
[K in keyof T]?: DeepPartial<T[K]>; | ||
@@ -29,3 +29,3 @@ } : T; | ||
*/ | ||
export declare type DeepRequired<T, P extends string[]> = T extends unknown[] ? T : T extends object ? Pick<T, Extract<keyof T, P[0]>> & Required<{ | ||
export declare type DeepRequired<T, P extends string[]> = T extends unknown[] ? T : T extends Record<string, unknown> ? Pick<T, Extract<keyof T, P[0]>> & Required<{ | ||
[K in Exclude<keyof T, P[0]>]: NonNullable<DeepRequired<T[K], ShiftUnion<K, P>>>; | ||
@@ -32,0 +32,0 @@ }> : T; |
@@ -16,3 +16,3 @@ /** | ||
export declare function defaults<A, B, C, D>(a: A, b: B, c: C, d: D): A & B & C & D; | ||
export declare function defaults<A, R>(a: A, ...other: any[]): R; | ||
export declare function defaults<A, R>(a: A, ...other: Record<string, unknown>[]): R; | ||
/** | ||
@@ -36,3 +36,3 @@ * Returns `true` if this is a plain object, which is defined by a type created | ||
*/ | ||
export declare const isPlainObject: (obj: any) => boolean; | ||
export declare const isPlainObject: (obj: unknown) => boolean; | ||
/** | ||
@@ -56,2 +56,2 @@ * Returns an array of key-value pairs for each enumerable key in `obj`. | ||
export declare function fromPairs<T>(pairs: Array<[string, T]> | undefined | null): Record<string, T>; | ||
export declare function fromPairs(pairs: Array<any[]> | undefined | null): Record<string, any>; | ||
export declare function fromPairs(pairs: Array<unknown[]> | undefined | null): Record<string, unknown>; |
@@ -27,3 +27,3 @@ /** | ||
*/ | ||
export declare const parseAndAddParams: (baseStr: string, params?: object | undefined) => Uri; | ||
export declare const parseAndAddParams: (baseStr: string, params?: Record<string, unknown> | undefined) => Uri; | ||
export declare const isEqual: (a: Uri, b: Uri) => boolean; | ||
@@ -30,0 +30,0 @@ export declare const replacePath: (path: string, uri: Uri) => Uri; |
{ | ||
"name": "@vertexvis/utils", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "Utility library for Viewer SDK.", | ||
@@ -45,13 +45,13 @@ "license": "MIT", | ||
"@types/jest": "^24.0.23", | ||
"@vertexvis/eslint-config-vertexvis-typescript": "0.2.2", | ||
"@vertexvis/jest-config-vertexvis": "0.4.4", | ||
"@vertexwebsdk/build": "0.9.0", | ||
"@vertexvis/eslint-config-vertexvis-typescript": "0.3.0", | ||
"@vertexvis/jest-config-vertexvis": "0.5.0", | ||
"@vertexwebsdk/build": "0.9.1", | ||
"eslint": "^6.1.0", | ||
"jest": "^24.9.0", | ||
"rollup": "^1.19.4", | ||
"ts-jest": "^24.0.2", | ||
"ts-jest": "^26.3.0", | ||
"tslib": "^1.10.0", | ||
"typescript": "^3.7.4" | ||
"typescript": "^4.0.2" | ||
}, | ||
"gitHead": "b2e20907cd07d360426da32aa63df9826f227f02" | ||
"gitHead": "1a0592794ac204d274e6a564aba640a71841f9e1" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
560587
4057