import { Type } from './Type' ; import type { Platform } from '../platforms' ; import type { EntityProperty } from '../typings' ; export class DateTimeType extends Type < Date , string > { getColumnType ( prop , platform ) { return platform . getDateTimeTypeDeclarationSQL ( { length : prop . length ?? 0 } ) ; } compareAsType ( ) { return 'Date' ; } }