Issue with Specifying a Schema as a Function Argument in TypeScript

I have this common issue that always seems to pop up and I cant solve it without rewriting everything. If I specifiy a schema as an argument to a function:

like this for example:

export const transformation = <
    Links extends S.Schema<Record<PropertyKey, any>, JsonApiLinks, never>,
    LinksSourceKeys extends keyof S.Schema.Type<Links>
> = ({ ...blabla })
Was this page helpful?