Type alias ZipTransformation<A, B, C>

ZipTransformation<A, B, C>: ((a, b) => C)

Type Parameters

  • A

    any type

  • B

    any type

  • C

    any type

Type declaration

    • (a, b): C
    • Type alias for functions that 2 values and return any other value

      Parameters

      • a: A
      • b: B

      Returns C

      Example

      // All the following are valid examples
      const fn1 = (a: number, b: number): number => a + b
      const fn2 = (a: string, b: number): string => a.repeat(b)
      const fn3 = (a: number, b: string): {a: number, b: string} => ({ a, b })

Generated using TypeDoc