diff --git a/src/immutable-record.ts b/src/immutable-record.ts index 87a853e..0ee6c57 100644 --- a/src/immutable-record.ts +++ b/src/immutable-record.ts @@ -13,7 +13,7 @@ export type ImmutableConstructor = new ( export function ImmutableRecord( defaultValues: T | Immutable, processor?: (values: Partial>) => Partial>, -) { +): ImmutableConstructor { const classProcessor = processor ?? ((value: Partial>) => value); class ImmutableRecordClass implements ImmutableWith {