Inferring Layer Type in TypeScript - Effect Community