Limitations of Inferring Schemas with Effect and TypeScript

I am trying to understand the limitations of Effect schema and typescript - Is this a limitation, where to infer a schema automatically, you must use a Schema.Class and cannot extend like shown in my examples

export class CustomList extends S.Array( 
  S.String,
) {};
// <~ CustomList does not get inferred like it would be a S.Class
const fn = (customList: CustomList) => { 
// customList.map() // <~ .map is not defined on customList
// Need to change param to `typeof customList.Type`
}


Much more detailed question and examples in here:
https://effect.website/play#24774b1aeb13
Was this page helpful?