UNPKG
@arrows/dispatch
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
0.2.5
0.2.4
0.2.3
0.2.2
0.2.0
0.1.0
Functional dispatch library
caderek.github.io/arrows/packages/dispatch/
caderek/arrows
@arrows/dispatch
/
identity.d.ts
7 lines
(6 loc)
•
145 B
TypeScript
View Raw
1
2
3
4
5
6
7
/** * Identity function - returns the argument as-is. */
declare
const
identity
: <T>
(
x
: T
) =>
T;
export
{ identity };
export
default
identity;