How to type test using schemas so that TypeScript understands

visit shbcf.ru