Possibility of a `decode` Variant for Partially Typed Data

Could there be room for a S.decode variant inbetween S.decode (strict) and S.decodeUnknown? A lot of times my source data is not completely
unknown
, but also not completely typed. e.g. decoding an S.Struct({ ... }) from a Record<string, string> .

Using S.decodeUnknown in these scenarios makes the code less type-safe than it could be (should be).
Was this page helpful?