arktypea
arktype9mo ago
san

Is there a way to "deep" require a type?

I have a type with a lot of deeply nested types and a lot of keys in them are optional. I then want to make the same type but with all keys required i.e remove the optional. Is there an easy way to do this? I know you can use .require() but that only works on the top level keys, not the nested ones
Was this page helpful?