import { Infer, s } from '.' const res = new s({ a: s.object({ p: s.string() }) }) type Infered = Infer type Test = Infered['a']['p'] console.log(res.parse("{ hello: 'world' }"))