Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "api/fn"

Index

Type aliases

Fn

Fn<A, B>: (a: A) => B

A single arg function from A to B.

Type parameters

  • A

  • B

Type declaration

    • (a: A): B
    • Parameters

      • a: A

      Returns B

Fn0

Fn0<T>: () => T

A no-arg function, returning T.

Type parameters

  • T

Type declaration

    • (): T
    • Returns T

Fn10

Fn10<A, B, C, D, E, F, G, H, I, J, K>: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J) => K

A 10-arg function from A,B,C,D,E,F,G,H,I,J to K.

Type parameters

  • A

  • B

  • C

  • D

  • E

  • F

  • G

  • H

  • I

  • J

  • K

Type declaration

    • (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J): K
    • Parameters

      • a: A
      • b: B
      • c: C
      • d: D
      • e: E
      • f: F
      • g: G
      • h: H
      • i: I
      • j: J

      Returns K

Fn2

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

A 2-arg function from A,B to C.

Type parameters

  • A

  • B

  • C

Type declaration

    • (a: A, b: B): C
    • Parameters

      • a: A
      • b: B

      Returns C

Fn3

Fn3<A, B, C, D>: (a: A, b: B, c: C) => D

A 3-arg function from A,B,C to D.

Type parameters

  • A

  • B

  • C

  • D

Type declaration

    • (a: A, b: B, c: C): D
    • Parameters

      • a: A
      • b: B
      • c: C

      Returns D

Fn4

Fn4<A, B, C, D, E>: (a: A, b: B, c: C, d: D) => E

A 4-arg function from A,B,C,D to E.

Type parameters

  • A

  • B

  • C

  • D

  • E

Type declaration

    • (a: A, b: B, c: C, d: D): E
    • Parameters

      • a: A
      • b: B
      • c: C
      • d: D

      Returns E

Fn5

Fn5<A, B, C, D, E, F>: (a: A, b: B, c: C, d: D, e: E) => F

A 5-arg function from A,B,C,D,E to F.

Type parameters

  • A

  • B

  • C

  • D

  • E

  • F

Type declaration

    • (a: A, b: B, c: C, d: D, e: E): F
    • Parameters

      • a: A
      • b: B
      • c: C
      • d: D
      • e: E

      Returns F

Fn6

Fn6<A, B, C, D, E, F, G>: (a: A, b: B, c: C, d: D, e: E, f: F) => G

A 6-arg function from A,B,C,D,E,F to G.

Type parameters

  • A

  • B

  • C

  • D

  • E

  • F

  • G

Type declaration

    • (a: A, b: B, c: C, d: D, e: E, f: F): G
    • Parameters

      • a: A
      • b: B
      • c: C
      • d: D
      • e: E
      • f: F

      Returns G

Fn7

Fn7<A, B, C, D, E, F, G, H>: (a: A, b: B, c: C, d: D, e: E, f: F, g: G) => H

A 7-arg function from A,B,C,D,E,F,G to H.

Type parameters

  • A

  • B

  • C

  • D

  • E

  • F

  • G

  • H

Type declaration

    • (a: A, b: B, c: C, d: D, e: E, f: F, g: G): H
    • Parameters

      • a: A
      • b: B
      • c: C
      • d: D
      • e: E
      • f: F
      • g: G

      Returns H

Fn8

Fn8<A, B, C, D, E, F, G, H, I>: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H) => I

A 8-arg function from A,B,C,D,E,F,G,H to I.

Type parameters

  • A

  • B

  • C

  • D

  • E

  • F

  • G

  • H

  • I

Type declaration

    • (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H): I
    • Parameters

      • a: A
      • b: B
      • c: C
      • d: D
      • e: E
      • f: F
      • g: G
      • h: H

      Returns I

Fn9

Fn9<A, B, C, D, E, F, G, H, I, J>: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I) => J

A 9-arg function from A,B,C,D,E,F,G,H,I to J.

Type parameters

  • A

  • B

  • C

  • D

  • E

  • F

  • G

  • H

  • I

  • J

Type declaration

    • (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I): J
    • Parameters

      • a: A
      • b: B
      • c: C
      • d: D
      • e: E
      • f: F
      • g: G
      • h: H
      • i: I

      Returns J

FnAny

FnAny<T>: (...xs: any[]) => T

An untyped vararg arg function to type T.

Type parameters

  • T

Type declaration

    • (...xs: any[]): T
    • Parameters

      • Rest ...xs: any[]

      Returns T

FnAnyT

FnAnyT<A, B>: (...xs: A[]) => B

A typed vararg arg function from A to B.

Type parameters

  • A

  • B

Type declaration

    • (...xs: A[]): B
    • Parameters

      • Rest ...xs: A[]

      Returns B

FnN

FnN: FnU<number>

FnN10

FnN10: FnU10<number>

FnN2

FnN2: FnU2<number>

FnN3

FnN3: FnU3<number>

FnN4

FnN4: FnU4<number>

FnN5

FnN5: FnU5<number>

FnN6

FnN6: FnU6<number>

FnN7

FnN7: FnU7<number>

FnN8

FnN8: FnU8<number>

FnN9

FnN9: FnU9<number>

FnO

FnO<A, B>: (a: A, ...xs: any[]) => B

Type parameters

  • A

  • B

Type declaration

    • (a: A, ...xs: any[]): B
    • Parameters

      • a: A
      • Rest ...xs: any[]

      Returns B

FnO10

FnO10<A, B, C, D, E, F, G, H, I, J, K>: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, ...xs: any[]) => K

Type parameters

  • A

  • B

  • C

  • D

  • E

  • F

  • G

  • H

  • I

  • J

  • K

Type declaration

    • (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, j: J, ...xs: any[]): K
    • Parameters

      • a: A
      • b: B
      • c: C
      • d: D
      • e: E
      • f: F
      • g: G
      • h: H
      • i: I
      • j: J
      • Rest ...xs: any[]

      Returns K

FnO2

FnO2<A, B, C>: (a: A, b: B, ...xs: any[]) => C

Type parameters

  • A

  • B

  • C

Type declaration

    • (a: A, b: B, ...xs: any[]): C
    • Parameters

      • a: A
      • b: B
      • Rest ...xs: any[]

      Returns C

FnO3

FnO3<A, B, C, D>: (a: A, b: B, c: C, ...xs: any[]) => D

Type parameters

  • A

  • B

  • C

  • D

Type declaration

    • (a: A, b: B, c: C, ...xs: any[]): D
    • Parameters

      • a: A
      • b: B
      • c: C
      • Rest ...xs: any[]

      Returns D

FnO4

FnO4<A, B, C, D, E>: (a: A, b: B, c: C, d: D, ...xs: any[]) => E

Type parameters

  • A

  • B

  • C

  • D

  • E

Type declaration

    • (a: A, b: B, c: C, d: D, ...xs: any[]): E
    • Parameters

      • a: A
      • b: B
      • c: C
      • d: D
      • Rest ...xs: any[]

      Returns E

FnO5

FnO5<A, B, C, D, E, F>: (a: A, b: B, c: C, d: D, e: E, ...xs: any[]) => F

Type parameters

  • A

  • B

  • C

  • D

  • E

  • F

Type declaration

    • (a: A, b: B, c: C, d: D, e: E, ...xs: any[]): F
    • Parameters

      • a: A
      • b: B
      • c: C
      • d: D
      • e: E
      • Rest ...xs: any[]

      Returns F

FnO6

FnO6<A, B, C, D, E, F, G>: (a: A, b: B, c: C, d: D, e: E, f: F, ...xs: any[]) => G

Type parameters

  • A

  • B

  • C

  • D

  • E

  • F

  • G

Type declaration

    • (a: A, b: B, c: C, d: D, e: E, f: F, ...xs: any[]): G
    • Parameters

      • a: A
      • b: B
      • c: C
      • d: D
      • e: E
      • f: F
      • Rest ...xs: any[]

      Returns G

FnO7

FnO7<A, B, C, D, E, F, G, H>: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, ...xs: any[]) => H

Type parameters

  • A

  • B

  • C

  • D

  • E

  • F

  • G

  • H

Type declaration

    • (a: A, b: B, c: C, d: D, e: E, f: F, g: G, ...xs: any[]): H
    • Parameters

      • a: A
      • b: B
      • c: C
      • d: D
      • e: E
      • f: F
      • g: G
      • Rest ...xs: any[]

      Returns H

FnO8

FnO8<A, B, C, D, E, F, G, H, I>: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, ...xs: any[]) => I

Type parameters

  • A

  • B

  • C

  • D

  • E

  • F

  • G

  • H

  • I

Type declaration

    • (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, ...xs: any[]): I
    • Parameters

      • a: A
      • b: B
      • c: C
      • d: D
      • e: E
      • f: F
      • g: G
      • h: H
      • Rest ...xs: any[]

      Returns I

FnO9

FnO9<A, B, C, D, E, F, G, H, I, J>: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, ...xs: any[]) => J

Type parameters

  • A

  • B

  • C

  • D

  • E

  • F

  • G

  • H

  • I

  • J

Type declaration

    • (a: A, b: B, c: C, d: D, e: E, f: F, g: G, h: H, i: I, ...xs: any[]): J
    • Parameters

      • a: A
      • b: B
      • c: C
      • d: D
      • e: E
      • f: F
      • g: G
      • h: H
      • i: I
      • Rest ...xs: any[]

      Returns J

FnU

FnU<A, B>: Fn<A, B>

1-arg function with arg of type A and return type B (defaults to A)

Type parameters

  • A

  • B

FnU10

FnU10<A, B>: Fn10<A, A, A, A, A, A, A, A, A, A, B>

10-arg function with all args uniformly of type A and return type B (defaults to A)

Type parameters

  • A

  • B

FnU2

FnU2<A, B>: Fn2<A, A, B>

2-arg function with all args uniformly of type A and return type B (defaults to A)

Type parameters

  • A

  • B

FnU3

FnU3<A, B>: Fn3<A, A, A, B>

3-arg function with all args uniformly of type A and return type B (defaults to A)

Type parameters

  • A

  • B

FnU4

FnU4<A, B>: Fn4<A, A, A, A, B>

4-arg function with all args uniformly of type A and return type B (defaults to A)

Type parameters

  • A

  • B

FnU5

FnU5<A, B>: Fn5<A, A, A, A, A, B>

5-arg function with all args uniformly of type A and return type B (defaults to A)

Type parameters

  • A

  • B

FnU6

FnU6<A, B>: Fn6<A, A, A, A, A, A, B>

6-arg function with all args uniformly of type A and return type B (defaults to A)

Type parameters

  • A

  • B

FnU7

FnU7<A, B>: Fn7<A, A, A, A, A, A, A, B>

7-arg function with all args uniformly of type A and return type B (defaults to A)

Type parameters

  • A

  • B

FnU8

FnU8<A, B>: Fn8<A, A, A, A, A, A, A, A, B>

8-arg function with all args uniformly of type A and return type B (defaults to A)

Type parameters

  • A

  • B

FnU9

FnU9<A, B>: Fn9<A, A, A, A, A, A, A, A, A, B>

9-arg function with all args uniformly of type A and return type B (defaults to A)

Type parameters

  • A

  • B

Generated using TypeDoc