Type alias QueryHelperThis<T, QueryHelpers, S>

QueryHelperThis<T, QueryHelpers, S>: QueryWithHelpers<S | null, S, QueryHelpers, InstanceType<T>>

Helper type to easily set the this type in a QueryHelper function

Type Parameters

Example

function findById(this: QueryHelperThis<typeof YourClass, YourClassQueryHelpers>, id: string) {
return this.findOne({ _id: id });
}

Generated using TypeDoc