Skip to content

Commit

Permalink
fix: allows readonly records in DeepMergeRecordsDefaultHKTInternalPro…
Browse files Browse the repository at this point in the history
…pValueHelper (#60)
  • Loading branch information
RebeccaStevens authored Feb 22, 2022
1 parent 17388fb commit fc85dfa
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/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

0 comments on commit fc85dfa

Please sign in to comment.