Preserving `make` Method After Piping Operators in Effect Typescript

How can I preserve access to make after piping operators. I'm trying to avoid naming and exporting multiple defs.

const Foo = Schema.Struct({ name: Schema.String, things: Schema.optional(Schema.Array(Schema.String)) });
Foo.make({ name: 'hello' }); // Good

const FBar = Schema.Struct({ name: Schema.String, things: Schema.optional(Schema.Array(Schema.String)) }).pipe(Schema.mutable);
Bar.make({ name: 'hello' }); // Bad
Was this page helpful?