Use ISOString instead of Date for Default date values

This commit is contained in:
Convly 2022-07-21 15:48:47 +02:00
parent d0168cf957
commit 704cdd8ae7

View File

@ -103,7 +103,7 @@ const toTypeLiteral = data => {
}
if (isDate(data)) {
return factory.createTypeReferenceNode('Date');
return factory.createStringLiteral(data.toISOString());
}
if (typeof data !== 'object') {