Skip to content

Commit

Permalink
fix(core): fix remove duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Rivera committed May 22, 2024
1 parent eb7d503 commit 3866c95
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 12 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@
"ts": "never"
}
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
]
}
}
12 changes: 0 additions & 12 deletions packages/bautajs-core/src/decorators/iif.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
import { BautaJSInstance, Context, Pipeline } from '../types';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function iif<TIn, TPipelineOut, TElseNever>(
condition: (prev: TIn, ctx: Context, bautajs: BautaJSInstance) => boolean,
pipeline: Pipeline.StepFunction<TIn, TPipelineOut>
): Pipeline.StepFunction<TIn, TIn | TPipelineOut>;

export function iif<TIn, TPipelineOut, TElsePipelineOut>(
condition: (prev: TIn, ctx: Context, bautajs: BautaJSInstance) => boolean,
pipeline: Pipeline.StepFunction<TIn, TPipelineOut>,
elsePipeline: Pipeline.StepFunction<TIn, TElsePipelineOut>
): Pipeline.StepFunction<TIn, TPipelineOut | TElsePipelineOut>;

/**
* @deprecated This function is deprecated and will be removed in future releases
*
Expand Down

0 comments on commit 3866c95

Please sign in to comment.