Skip to content

Commit

Permalink
fix(core): avoid duplicated exports
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo1991 authored May 24, 2024
1 parent 420bac9 commit b3c8740
Showing 1 changed file with 0 additions and 12 deletions.
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 b3c8740

Please sign in to comment.