@deephaven/utils
Advanced tools
Comparing version 0.93.1-alpha-test-utils.3 to 0.93.1-alpha-ts-upgrade.5
@@ -1,2 +0,3 @@ | ||
import type { Event, EventTarget } from 'event-target-shim'; | ||
import type { Event as EventT, EventTarget as EventTargetT } from 'event-target-shim'; | ||
export type { EventT }; | ||
/** | ||
@@ -8,6 +9,6 @@ * A CustomEvent extension which combines the browser CustomEvent and event-target-shim's Event types for type safety | ||
type: T; | ||
target: EventTarget | null; | ||
srcElement: EventTarget | null; | ||
currentTarget: EventTarget | null; | ||
composedPath: () => EventTarget[]; | ||
target: (EventTargetT & EventTarget) | null; | ||
srcElement: (EventTargetT & EventTarget) | null; | ||
currentTarget: (EventTargetT & EventTarget) | null; | ||
composedPath: () => (EventTargetT & EventTarget)[]; | ||
constructor(typeArg: T, eventInitDict?: CustomEventInit<D>); | ||
@@ -21,4 +22,4 @@ } | ||
export type CustomEventMap<M extends Record<string, Event | CustomEvent>> = { | ||
[T in keyof M]: T extends string ? M[T] extends CustomEvent<infer D> ? EventShimCustomEvent<T, D> : M[T] extends Event ? Event<T> : never : never; | ||
[T in keyof M]: T extends string ? M[T] extends CustomEvent<infer D> ? EventShimCustomEvent<T, D> : M[T] extends EventT ? EventT<T> : never : never; | ||
}; | ||
//# sourceMappingURL=EventTargetShimUtils.d.ts.map |
@@ -1,2 +0,1 @@ | ||
import type { Component, FunctionComponent } from 'react'; | ||
/** | ||
@@ -17,6 +16,2 @@ * Util type to create a "subtype" of T. Useful for creating subsets of union | ||
/** | ||
* Extracts the props type from a React component type. | ||
*/ | ||
export type InferComponentProps<T> = T extends FunctionComponent<infer P> ? P : T extends Component<infer P> ? P : never; | ||
/** | ||
* Derives a union type where all constituents define 1 property of the original | ||
@@ -23,0 +18,0 @@ * type. |
{ | ||
"name": "@deephaven/utils", | ||
"version": "0.93.1-alpha-test-utils.3+5e69e2c1", | ||
"version": "0.93.1-alpha-ts-upgrade.5+ff64ab8b", | ||
"description": "Deephaven Utils", | ||
@@ -32,5 +32,5 @@ "author": "Deephaven Data Labs LLC", | ||
"devDependencies": { | ||
"@deephaven/test-utils": "^0.93.1-alpha-test-utils.3+5e69e2c1" | ||
"@deephaven/test-utils": "^0.93.1-alpha-ts-upgrade.5+ff64ab8b" | ||
}, | ||
"gitHead": "5e69e2c1e6d3d6aaf6e58b7577606145d78d5393" | ||
"gitHead": "ff64ab8b355193ccea7a68e1f6d53c691942fe71" | ||
} |
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
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
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
171609
1632