Alex Rattray

Results 410 comments of Alex Rattray
trafficstars

Yes, sorry, I will try to put together an example of what I mean soon…

I ran into this as well; this was my workaround: ```ts { type: undefined as unknown as "object", oneOf: [...], } ```

Which types would you like to make public?

Updated the description and title with more generic (and I hope compelling) examples.

Note that currently, the output of any custom `deserialize` function seems to stringified after the fact, so you can't hack around this right now.

Hi @pilerou, Thanks for looking into this! My hunch is that it should be fully generic. For example, there may even be a type: object that gets serialized into a...

> Thoughts, everyone? Heh, hey @JoshuaKGoldberg ! Good to see you here! Sorry I missed this before. FWIW, it's not my expected behavior to have the library dedent most things,...

TODO(self): fix this formatting bug with comments: ```js schema.model ? schema : // If model is an array where the items schema is a referred model then we need to...

Thanks, agreed. Good catch. That should probably be more like ```ts type LinkFieldName = keyof Entity extends infer ExpandedFieldName extends keyof Entity ? ExpandedFieldName extends `${infer FieldName}__resolved` ? Entity[ExpandedFieldName] extends...

Good question; I'd imagine something like this but I'll have to fiddle with it (I didn't spend a ton of time optimizing conditional types, and I don't have a ton...