Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IfElseFn

Hierarchy

  • IfElseFn

Callable

  • __call<A, B, C>(predicate: Is<B>, thenFn: Arity1<B, C>, elseFn: Arity1<A, C>, value: A): C
  • __call<A, B>(predicate: Predicate<A>, thenFn: Arity1<A, B>, elseFn: Arity1<A, B>, value: A): B
  • __call<A, B, C>(predicate: Is<B>, thenFn: Arity1<B, C>, elseFn: Arity1<A, C>): (value: A) => C
  • __call<A, B>(predicate: Predicate<A>, thenFn: Arity1<A, B>, elseFn: Arity1<A, B>): (value: A) => B
  • __call<A, B, C>(predicate: Is<B>, thenFn: Arity1<B, C>): { (elseFn: Arity1<A, C>, value: A): C; (elseFn: Arity1<A, C>): (value: A) => C }
  • __call<A, B>(predicate: Predicate<A>, thenFn: Arity1<A, B>): { (elseFn: Arity1<A, B>, value: A): B; (elseFn: Arity1<A, B>): (value: A) => B }
  • __call<A, B>(predicate: Is<B>): { <C>(thenFn: Arity1<B, C>, elseFn: Arity1<A, C>, value: A): C; <C>(thenFn: Arity1<B, C>, elseFn: Arity1<A, C>): (value: A) => C; <C>(thenFn: Arity1<B, C>): { (elseFn: Arity1<A, C>, value: A): C; (elseFn: Arity1<A, C>): (value: A) => C } }
  • __call<A>(predicate: Predicate<A>): { <B>(thenFn: Arity1<A, B>, elseFn: Arity1<A, B>, value: A): B; <B>(thenFn: Arity1<A, B>, elseFn: Arity1<A, B>): (value: A) => B; <B>(thenFn: Arity1<A, B>): { (elseFn: Arity1<A, B>, value: A): B; (elseFn: Arity1<A, B>): (value: A) => B } }
  • Type parameters

    • A

    • B: A

    • C

    Parameters

    Returns C

  • Type parameters

    • A

    • B

    Parameters

    Returns B

  • Type parameters

    • A

    • B: A

    • C

    Parameters

    Returns (value: A) => C

      • (value: A): C
      • Parameters

        • value: A

        Returns C

  • Type parameters

    • A

    • B

    Parameters

    Returns (value: A) => B

      • (value: A): B
      • Parameters

        • value: A

        Returns B

  • Type parameters

    • A

    • B: A

    • C

    Parameters

    Returns { (elseFn: Arity1<A, C>, value: A): C; (elseFn: Arity1<A, C>): (value: A) => C }

      • (elseFn: Arity1<A, C>, value: A): C
      • (elseFn: Arity1<A, C>): (value: A) => C
      • Parameters

        • elseFn: Arity1<A, C>
        • value: A

        Returns C

      • Parameters

        Returns (value: A) => C

          • (value: A): C
          • Parameters

            • value: A

            Returns C

  • Type parameters

    • A

    • B

    Parameters

    Returns { (elseFn: Arity1<A, B>, value: A): B; (elseFn: Arity1<A, B>): (value: A) => B }

      • (elseFn: Arity1<A, B>, value: A): B
      • (elseFn: Arity1<A, B>): (value: A) => B
      • Parameters

        • elseFn: Arity1<A, B>
        • value: A

        Returns B

      • Parameters

        Returns (value: A) => B

          • (value: A): B
          • Parameters

            • value: A

            Returns B

  • Type parameters

    • A

    • B: A

    Parameters

    • predicate: Is<B>

    Returns { <C>(thenFn: Arity1<B, C>, elseFn: Arity1<A, C>, value: A): C; <C>(thenFn: Arity1<B, C>, elseFn: Arity1<A, C>): (value: A) => C; <C>(thenFn: Arity1<B, C>): { (elseFn: Arity1<A, C>, value: A): C; (elseFn: Arity1<A, C>): (value: A) => C } }

      • <C>(thenFn: Arity1<B, C>, elseFn: Arity1<A, C>, value: A): C
      • <C>(thenFn: Arity1<B, C>, elseFn: Arity1<A, C>): (value: A) => C
      • <C>(thenFn: Arity1<B, C>): { (elseFn: Arity1<A, C>, value: A): C; (elseFn: Arity1<A, C>): (value: A) => C }
      • Type parameters

        • C

        Parameters

        Returns C

      • Type parameters

        • C

        Parameters

        Returns (value: A) => C

          • (value: A): C
          • Parameters

            • value: A

            Returns C

      • Type parameters

        • C

        Parameters

        Returns { (elseFn: Arity1<A, C>, value: A): C; (elseFn: Arity1<A, C>): (value: A) => C }

          • (elseFn: Arity1<A, C>, value: A): C
          • (elseFn: Arity1<A, C>): (value: A) => C
          • Parameters

            • elseFn: Arity1<A, C>
            • value: A

            Returns C

          • Parameters

            Returns (value: A) => C

              • (value: A): C
              • Parameters

                • value: A

                Returns C

  • Type parameters

    • A

    Parameters

    Returns { <B>(thenFn: Arity1<A, B>, elseFn: Arity1<A, B>, value: A): B; <B>(thenFn: Arity1<A, B>, elseFn: Arity1<A, B>): (value: A) => B; <B>(thenFn: Arity1<A, B>): { (elseFn: Arity1<A, B>, value: A): B; (elseFn: Arity1<A, B>): (value: A) => B } }

      • <B>(thenFn: Arity1<A, B>, elseFn: Arity1<A, B>, value: A): B
      • <B>(thenFn: Arity1<A, B>, elseFn: Arity1<A, B>): (value: A) => B
      • <B>(thenFn: Arity1<A, B>): { (elseFn: Arity1<A, B>, value: A): B; (elseFn: Arity1<A, B>): (value: A) => B }
      • Type parameters

        • B

        Parameters

        Returns B

      • Type parameters

        • B

        Parameters

        Returns (value: A) => B

          • (value: A): B
          • Parameters

            • value: A

            Returns B

      • Type parameters

        • B

        Parameters

        Returns { (elseFn: Arity1<A, B>, value: A): B; (elseFn: Arity1<A, B>): (value: A) => B }

          • (elseFn: Arity1<A, B>, value: A): B
          • (elseFn: Arity1<A, B>): (value: A) => B
          • Parameters

            • elseFn: Arity1<A, B>
            • value: A

            Returns B

          • Parameters

            Returns (value: A) => B

              • (value: A): B
              • Parameters

                • value: A

                Returns B

Generated using TypeDoc