Effect CommunityEC
Effect Community3y ago
145 replies
Sadra

Passing Type in Schema Array

is there better way to pass Type inside Schema array ?
const Input = S.struct({
  id: S.number,
  array: S.array(S.any as S.Schema<Element, Element>).pipe(S.optional),
  show: S.boolean.pipe(S.optional),
});
Was this page helpful?