fix: tsconfig, types

This commit is contained in:
opbnq-q
2025-03-10 23:32:38 -07:00
parent aeef6743be
commit e16fce9221
7 changed files with 9 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
import type { PrimitiveFieldType } from "../../types/primitive-field-type.type"
import { toDate } from "./converters.util";
export const viewDate = (data: unknown, type: PrimitiveFieldType) => {
export const viewDate = (data: unknown, type?: PrimitiveFieldType) => {
if (type !== 'date') return data;
return toDate(data as number | Date).toLocaleDateString('ru-RU', {
year: 'numeric',