Start unused parameter names with underscore
This commit is contained in:
parent
d34feb1e0a
commit
a5a61c87fc
@ -30,8 +30,8 @@ const schemaErrorTransformer = (error: Error) => {
|
|||||||
*/
|
*/
|
||||||
const asyncErrorHandlerFactory = (errorTransformer: ErrorTransformer) => {
|
const asyncErrorHandlerFactory = (errorTransformer: ErrorTransformer) => {
|
||||||
const asyncErrorHandlingDecorator = (
|
const asyncErrorHandlingDecorator = (
|
||||||
target: object,
|
_target: object,
|
||||||
key: string | symbol,
|
_key: string | symbol,
|
||||||
descriptor: TypedPropertyDescriptor<AsyncMethod>,
|
descriptor: TypedPropertyDescriptor<AsyncMethod>,
|
||||||
) => {
|
) => {
|
||||||
const originalMethod = descriptor.value as AsyncMethod;
|
const originalMethod = descriptor.value as AsyncMethod;
|
||||||
@ -57,8 +57,8 @@ const asyncErrorHandlerFactory = (errorTransformer: ErrorTransformer) => {
|
|||||||
|
|
||||||
const syncErrorHandlerFactory = (errorTransformer: ErrorTransformer) => {
|
const syncErrorHandlerFactory = (errorTransformer: ErrorTransformer) => {
|
||||||
const syncErrorHandlingDecorator = (
|
const syncErrorHandlingDecorator = (
|
||||||
target: object,
|
_target: object,
|
||||||
key: string | symbol,
|
_key: string | symbol,
|
||||||
descriptor: TypedPropertyDescriptor<SyncMethod>,
|
descriptor: TypedPropertyDescriptor<SyncMethod>,
|
||||||
) => {
|
) => {
|
||||||
const originalMethod = descriptor.value as SyncMethod;
|
const originalMethod = descriptor.value as SyncMethod;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user