TypeScript Schema Type Mismatch in API Integration

I need some TS / Effect help. I am trying to define a common shape for external API's that I integrate with. Here's a codesandbox: https://codesandbox.io/p/sandbox/jolly-taussig-mxzswf?file=/src/index.ts:394,7

You can see the issue on like 398 for const test. I'm getting:
const test: Schema.Schema<Schema.Struct<{
 data: Schema.Array$<Schema.Schema<unknown, unknown, never>>;
 included: Schema.Array$<typeof Schema.Unknown>;
 links: Schema.Struct<{
 next: Schema.optional<typeof Schema.String>;
 self: typeof Schema.String;
 }>;
 meta: Schema.Struct<...>;
}>, Schema.Struct<...>, never>


and I want
const test: Schema.Schema<Schema.Struct<{
 data: Schema.Array$<PCOPerson>;
 included: Schema.Array$<typeof Schema.Unknown>;
 links: Schema.Struct<{
 next: Schema.optional<typeof Schema.String>;
 self: typeof Schema.String;
 }>;
 meta: Schema.Struct<...>;
}>, Schema.Struct<...>, never>
Was this page helpful?