Functionpluginsv0.6.1Decorator
See also:DatabaseError, CustomError, MongoService
WrapDatabaseError<TypeReturn>(
errorMessage: string
): (
_target: unknown,
_propertyKey: string,
descriptor: TypedPropertyDescriptor<
(...args: any[]) => Promise<TypeReturn>
>
) => voidWrapDatabaseError<TypeReturn>(
errorMessage: string
): (
_target: unknown,
_propertyKey: string,
descriptor: TypedPropertyDescriptor<
(...args: any[]) => Promise<TypeReturn>
>
) => voidTypeReturn
The return type of the decorated method
TypeReturnTypeReturnThe return type of the decorated method