UNPKG

typeorm-encrypted

Version:
16 lines (15 loc) 433 B
import { EntitySubscriberInterface, InsertEvent, UpdateEvent } from 'typeorm'; export declare class AutoEncryptSubscriber implements EntitySubscriberInterface { /** * Encrypt before insertion. */ beforeInsert(event: InsertEvent<any>): void; /** * Encrypt before update. */ beforeUpdate(event: UpdateEvent<any>): void; /** * Decrypt after find. */ afterLoad(entity: any): void; }