Skip to content

Commit

Permalink
chore(release): 3.0.1 [skip ci]
Browse files Browse the repository at this point in the history
## [3.0.1](v3.0.0...v3.0.1) (2022-02-22)

### Bug Fixes

* allows readonly records in DeepMergeRecordsDefaultHKTInternalPropValueHelper ([#60](#60)) ([fc85dfa](fc85dfa))
  • Loading branch information
semantic-release-bot committed Feb 22, 2022
1 parent fc85dfa commit 3f3a31c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Changelog
All notable changes to this project will be documented in this file. Dates are displayed in UTC.

## [3.0.1](https://github.com/RebeccaStevens/deepmerge-ts/compare/v3.0.0...v3.0.1) (2022-02-22)


### Bug Fixes

* allows readonly records in DeepMergeRecordsDefaultHKTInternalPropValueHelper ([#60](https://github.com/RebeccaStevens/deepmerge-ts/issues/60)) ([fc85dfa](https://github.com/RebeccaStevens/deepmerge-ts/commit/fc85dfa0cc579de127c8458e808f81cbca84d090))

# [3.0.0](https://github.com/RebeccaStevens/deepmerge-ts/compare/v2.0.1...v3.0.0) (2022-02-19)


Expand Down
9 changes: 2 additions & 7 deletions dist/deno/types/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,7 @@ type DeepMergeRecordsDefaultHKTInternalPropValue<
K extends PropertyKey,
M
> = FilterOutNever<
DeepMergeRecordsDefaultHKTInternalPropValueHelper<
Ts,
K,
M,
Readonly<readonly []>
>
DeepMergeRecordsDefaultHKTInternalPropValueHelper<Ts, K, M, readonly []>
>;

/**
Expand All @@ -114,7 +109,7 @@ type DeepMergeRecordsDefaultHKTInternalPropValueHelper<
M,
Acc extends ReadonlyArray<unknown>
> = Ts extends readonly [infer Head, ...infer Rest]
? Head extends Record<PropertyKey, unknown>
? Head extends Readonly<Record<PropertyKey, unknown>>
? Rest extends readonly [unknown, ...ReadonlyArray<unknown>]
? DeepMergeRecordsDefaultHKTInternalPropValueHelper<
Rest,
Expand Down
4 changes: 2 additions & 2 deletions dist/node/types/current/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,11 @@ declare type DeepMergeRecordsDefaultHKTInternalProps<Ts extends readonly [unknow
/**
* Get the value of the property.
*/
declare type DeepMergeRecordsDefaultHKTInternalPropValue<Ts extends readonly [unknown, ...ReadonlyArray<unknown>], K extends PropertyKey, M> = FilterOutNever<DeepMergeRecordsDefaultHKTInternalPropValueHelper<Ts, K, M, Readonly<readonly []>>>;
declare type DeepMergeRecordsDefaultHKTInternalPropValue<Ts extends readonly [unknown, ...ReadonlyArray<unknown>], K extends PropertyKey, M> = FilterOutNever<DeepMergeRecordsDefaultHKTInternalPropValueHelper<Ts, K, M, readonly []>>;
/**
* Tail-recursive helper type for DeepMergeRecordsDefaultHKTInternalPropValue.
*/
declare type DeepMergeRecordsDefaultHKTInternalPropValueHelper<Ts extends readonly [unknown, ...ReadonlyArray<unknown>], K extends PropertyKey, M, Acc extends ReadonlyArray<unknown>> = Ts extends readonly [infer Head, ...infer Rest] ? Head extends Record<PropertyKey, unknown> ? Rest extends readonly [unknown, ...ReadonlyArray<unknown>] ? DeepMergeRecordsDefaultHKTInternalPropValueHelper<Rest, K, M, [
declare type DeepMergeRecordsDefaultHKTInternalPropValueHelper<Ts extends readonly [unknown, ...ReadonlyArray<unknown>], K extends PropertyKey, M, Acc extends ReadonlyArray<unknown>> = Ts extends readonly [infer Head, ...infer Rest] ? Head extends Readonly<Record<PropertyKey, unknown>> ? Rest extends readonly [unknown, ...ReadonlyArray<unknown>] ? DeepMergeRecordsDefaultHKTInternalPropValueHelper<Rest, K, M, [
...Acc,
ValueOfKey<Head, K>
]> : [...Acc, ValueOfKey<Head, K>] : never : never;
Expand Down

0 comments on commit 3f3a31c

Please sign in to comment.