Fix date property change detection.

This commit is contained in:
Madeorsk 2024-10-05 16:03:58 +02:00
parent e373efdd0a
commit ff9cb91f73
Signed by: Madeorsk
GPG key ID: 677E51CA765BB79F
3 changed files with 7 additions and 2 deletions

View file

@ -19,7 +19,7 @@
</p> </p>
<p align="center"> <p align="center">
<img alt="Version 3.2.0" src="https://img.shields.io/badge/version-3.2.0-blue" /> <img alt="Version 3.2.1" src="https://img.shields.io/badge/version-3.2.1-blue" />
</p> </p>
## Introduction ## Introduction

View file

@ -1,6 +1,6 @@
{ {
"name": "@sharkitek/core", "name": "@sharkitek/core",
"version": "3.2.0", "version": "3.2.1",
"description": "TypeScript library for well-designed model architectures.", "description": "TypeScript library for well-designed model architectures.",
"keywords": [ "keywords": [
"deserialization", "deserialization",

View file

@ -21,6 +21,11 @@ export class DateType extends Type<string, Date>
return value?.toISOString(); return value?.toISOString();
} }
propertyHasChanged(originalValue: Date|null|undefined, currentValue: Date|null|undefined): boolean
{
return originalValue?.toISOString() != currentValue?.toISOString();
}
} }
/** /**