I am using typescript to write some function and this is the one that TS accepts:
export const useSomething = () => {
const useStorage = <
Following type alias can be used to avoid explicit parameter names:
type F = (...args: A) => R
const example1: F<[number, boolean], number> = (x, y) => y ? x : x + 1;
const example2: F<[number], string> = String;