TypeScript Function for Schema.Struct Without Context
I'd like to write a function which accepts a
Schema.Struct
Schema.Struct
, but with no context, but I'm not sure how. Basically, fill in the
???
???
:
const structsWithNoContextOnly = <S extends ???>(s: S) => { s.fields // where this works without type errors Schema.decodeUnknownSync(s)(null) // and this too}
const structsWithNoContextOnly = <S extends ???>(s: S) => { s.fields // where this works without type errors Schema.decodeUnknownSync(s)(null) // and this too}