fix: `unknown` al posto di `any`

This commit is contained in:
Maicol Battistini 2023-06-12 12:51:04 +02:00
parent 70780c573f
commit 1abe8a10c8
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ export default abstract class RecordsPage<
onDeleteRecordButtonClick={this.onDeleteRecordButtonClicked.bind(this)}
onDeleteSelectedRecordsButtonClick={this.onDeleteSelectedRecordsButtonClicked.bind(this)}
readonly={this.readonlyRecords}
valueModifier={(value, attribute: string, record: M) => this.cellValueModifier(value, attribute, record)
valueModifier={(value: unknown, attribute: string, record: M) => this.cellValueModifier(value, attribute, record)
.otherwise(() => value)}/>
);
}
@ -323,7 +323,7 @@ export default abstract class RecordsPage<
return this.recordDialogsStates.get(key)!;
}
protected cellValueModifier(value: any, attribute: string, record: M): Match<string, unknown> {
protected cellValueModifier(value: unknown, attribute: string, record: M): Match<string, unknown> {
return match(attribute)
.with('createdAt', 'updatedAt', () => dayjs(value as Date).format('DD/MM/YYYY HH:mm'));
}