Skip to content

Commit

Permalink
Fix type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
NoelDeMartin committed Feb 11, 2024
1 parent 0316052 commit 79d5733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/history/RemovePropertyOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default class RemovePropertyOperation extends Model {
const casterInstance = CasterClass.pureInstance();

return tap(
(field, value) => casterInstance.castAttribute(value, {
<T>(field: string, value: T) => casterInstance.castAttribute(value, {
definition: casterInstance.static().getFieldDefinition(field),
}),
caster => RemovePropertyOperation.attributeCasters.set(ModelClass, caster),
Expand Down

0 comments on commit 79d5733

Please sign in to comment.