Typescript type for function calling another function, with same parameters
Advertisements I’m sure this is easy, but I don’t seem to be able to find an answer (or maybe ask the right question!) I have a library function (specifically, an i18n.translator from here: https://primitives.solidjs.community/package/i18n#static-dictionaries), which I want to wrap with another function to provide some fallback value based on other logic. const translator = i18n.translator(dict);… Read More Typescript type for function calling another function, with same parameters