added hack aimed to simplify work with TypeScript