@deephaven/utils
Advanced tools
Comparing version 0.83.0 to 0.83.1-alpha-combobox.8
/** | ||
* Throws if given object is not an instance of a given type. | ||
* @param instance | ||
* @param type | ||
*/ | ||
export declare function assertInstanceOf<T>(instance: unknown, type: new (...args: any[]) => T): asserts instance is T; | ||
/** | ||
* Throws an error if excecuted. Useful for exhaustive switch statements. | ||
@@ -3,0 +9,0 @@ * |
/** | ||
* Throws if given object is not an instance of a given type. | ||
* @param instance | ||
* @param type | ||
*/ | ||
export function assertInstanceOf(instance, | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
type) { | ||
if (!(instance instanceof type)) { | ||
throw new Error("Expected instance of ".concat(type.name)); | ||
} | ||
} | ||
/** | ||
* Throws an error if excecuted. Useful for exhaustive switch statements. | ||
@@ -3,0 +16,0 @@ * |
{ | ||
"name": "@deephaven/utils", | ||
"version": "0.83.0", | ||
"version": "0.83.1-alpha-combobox.8+b6fbb986", | ||
"description": "Deephaven Utils", | ||
@@ -31,3 +31,3 @@ "author": "Deephaven Data Labs LLC", | ||
}, | ||
"gitHead": "419ca39682b73d312af2a046bdc177c6007549d2" | ||
"gitHead": "b6fbb9861f7e24e634d24274dde30cf1896a1b71" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
220922
2138
1