import { Type } from './Type.js';
/** Maps a database BOOLEAN/TINYINT(1) column to a JS `boolean`. */
export class BooleanType extends Type {
  getColumnType(prop, platform) {
    return platform.getBooleanTypeDeclarationSQL();
  }
  compareAsType() {
    return 'boolean';
  }
  convertToJSValue(value) {
    return Boolean(value);
  }
  ensureComparable() {
    return false;
  }
}
