Help with Typing a Schema Argument in a Function

Hi fellow Effect(ers?) (Is that a thing?) πŸ‘‹
As I'm dipping my toes into Effect I've come across this: I'd like to have a schema as an argument to a function that internally runs parsing but I can't figure out how to structure that type in a nice way and it feels like I'm missing something trivial? πŸ˜…

interface Props {
  schema: Schema.? //<-- What to put here? Is Schema.Schema<unknown, unknown, never> the way to go?
}

function doThing(props: Props) {
  const someOutput = Schema.decodeUnknownSync(props.schema)(someInput)
}
Was this page helpful?