error TS7010: 'mixIn', which lacks return-type annotation, implicitly has an 'any' return type.