Class VirtualType<HydratedDocType>
Constructors
constructor
- new VirtualType<HydratedDocType>(): VirtualType<HydratedDocType>
Methods
applyGetters
Parameters
Returns any
applySetters
Parameters
Returns any
get
Type Parameters
Parameters
fn: ((this: T, value: any, virtualType: VirtualType<T>, doc: T) => any)
- (this: T, value: any, virtualType: VirtualType<T>, doc: T): any
Returns VirtualType<HydratedDocType>
set
- set<T>(fn: ((this: T, value: any, virtualType: VirtualType<T>, doc: T) => void)): VirtualType<HydratedDocType>
Type Parameters
Parameters
fn: ((this: T, value: any, virtualType: VirtualType<T>, doc: T) => void)
- (this: T, value: any, virtualType: VirtualType<T>, doc: T): void
Returns VirtualType<HydratedDocType>
Applies getters to
value
.