Skip to content

Commit

Permalink
fix: correct return type of ImmutableRecord function to match constru…
Browse files Browse the repository at this point in the history
…ctor signature
  • Loading branch information
myty committed Nov 5, 2024
1 parent 9f94174 commit b09c987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/immutable-record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type ImmutableConstructor<T> = new (
export function ImmutableRecord<T>(
defaultValues: T | Immutable<T>,
processor?: (values: Partial<Immutable<T>>) => Partial<Immutable<T>>,
) {
): ImmutableConstructor<T> {
const classProcessor = processor ?? ((value: Partial<Immutable<T>>) => value);

class ImmutableRecordClass implements ImmutableWith<T> {
Expand Down

0 comments on commit b09c987

Please sign in to comment.