Using `Schema.pick` with Schema Classes in TypeScript

how do you use Schema.pick when using schema classes? this seems really wrong..

export class CreateInvoice extends S.Class<CreateInvoice>("CreateInvoice")(
  S.Struct(Invoice.fields).pipe(
    S.pick(
      "Type",
      "Contact",
      "LineItems",
      "Date",
    )
  ).fields
) {}
Was this page helpful?