@stryker-mutator/util
Advanced tools
Comparing version 6.3.0 to 6.3.1
@@ -6,2 +6,6 @@ # Change Log | ||
## [6.3.1](https://github.com/stryker-mutator/stryker-js/compare/v6.3.0...v6.3.1) (2022-12-18) | ||
**Note:** Version bump only for package @stryker-mutator/util | ||
# [6.3.0](https://github.com/stryker-mutator/stryker-js/compare/v6.2.3...v6.3.0) (2022-10-30) | ||
@@ -8,0 +12,0 @@ |
@@ -1,2 +0,2 @@ | ||
export declare type DeepPartial<T> = { | ||
export type DeepPartial<T> = { | ||
[P in keyof T]?: T[P] extends Record<string, any> ? DeepPartial<T[P]> : T[P]; | ||
@@ -3,0 +3,0 @@ }; |
@@ -5,5 +5,5 @@ /** | ||
*/ | ||
export declare type I<T> = { | ||
export type I<T> = { | ||
[K in keyof T]: T[K]; | ||
}; | ||
//# sourceMappingURL=i.d.ts.map |
import { Primitive } from './primitive'; | ||
declare type ImmutablePrimitive = Primitive | ((...args: any[]) => any); | ||
export declare type Immutable<T> = T extends ImmutablePrimitive ? T : T extends Array<infer U> ? ImmutableArray<U> : T extends Map<infer K, infer V> ? ImmutableMap<K, V> : T extends Set<infer M> ? ImmutableSet<M> : T extends RegExp ? Readonly<RegExp> : ImmutableObject<T>; | ||
export declare type ImmutableArray<T> = ReadonlyArray<Immutable<T>>; | ||
export declare type ImmutableMap<K, V> = ReadonlyMap<Immutable<K>, Immutable<V>>; | ||
export declare type ImmutableSet<T> = ReadonlySet<Immutable<T>>; | ||
export declare type ImmutableObject<T> = { | ||
type ImmutablePrimitive = Primitive | ((...args: any[]) => any); | ||
export type Immutable<T> = T extends ImmutablePrimitive ? T : T extends Array<infer U> ? ImmutableArray<U> : T extends Map<infer K, infer V> ? ImmutableMap<K, V> : T extends Set<infer M> ? ImmutableSet<M> : T extends RegExp ? Readonly<RegExp> : ImmutableObject<T>; | ||
export type ImmutableArray<T> = ReadonlyArray<Immutable<T>>; | ||
export type ImmutableMap<K, V> = ReadonlyMap<Immutable<K>, Immutable<V>>; | ||
export type ImmutableSet<T> = ReadonlySet<Immutable<T>>; | ||
export type ImmutableObject<T> = { | ||
readonly [K in keyof T]: Immutable<T[K]>; | ||
@@ -9,0 +9,0 @@ }; |
@@ -5,5 +5,5 @@ /** | ||
*/ | ||
export declare type KnownKeys<T> = keyof { | ||
export type KnownKeys<T> = keyof { | ||
[P in keyof T as string extends P ? never : number extends P ? never : P]: T[P]; | ||
}; | ||
//# sourceMappingURL=known-keys.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export declare type Primitive = boolean | number | string | null | undefined; | ||
export type Primitive = boolean | number | string | null | undefined; | ||
//# sourceMappingURL=primitive.d.ts.map |
import { KnownKeys } from './known-keys'; | ||
import { Primitive } from './primitive'; | ||
declare type OnlyObject<T> = Exclude<T, Primitive>; | ||
type OnlyObject<T> = Exclude<T, Primitive>; | ||
/** | ||
@@ -5,0 +5,0 @@ * Consolidates multiple consecutive white spaces into a single space. |
{ | ||
"name": "@stryker-mutator/util", | ||
"version": "6.3.0", | ||
"version": "6.3.1", | ||
"description": "Contains utilities for Stryker, the mutation testing framework for JavaScript and friends", | ||
@@ -33,5 +33,5 @@ "main": "dist/src/index.js", | ||
"devDependencies": { | ||
"@stryker-mutator/test-helpers": "6.3.0", | ||
"@stryker-mutator/test-helpers": "6.3.1", | ||
"@types/lodash.flatmap": "4.5.7", | ||
"@types/node": "18.11.7" | ||
"@types/node": "18.11.9" | ||
}, | ||
@@ -41,3 +41,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "28706dbe660e3156bc775c3465cbd2ce91f2e23f" | ||
"gitHead": "0bcb9b601cc0be0f91251af8c646ebc16b14b416" | ||
} |
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
79733