type of R.compose
Post

type of R.compose

Type of R.compose

  • Type declaration is Union type.
  • The first is the input value (argument).
  • From the second, specify the type in the order of function 1 and function 2 (function 1, 2 is return type)

example

R.compose<[{[key: string]: number}], number, number,  >(
	(val) => val + 1,
	R.propOr(0, ['a'])
)({a: 1, b: 2});

Reference