Trouble with Typing a Function in a TypeScript Code Snippet - Effect Community