Hi everyone, struggling a bit with scoping a set of properties, based on the input defined, and at the same time controlling the output response of the fetch, with certain config.
There are two version of the same interface Clerk I need to combine how they work, so I can both limit the properties to correct allowed ones, and also return the correct type based on the inputs.
I've created a TS Playground here, that shows the issue: https://tinyurl.com/2x3ppc8m
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.