Incorrect Optional (Patch?) results on types which look like Error
koloboid opened this issue Β· comments
π Bug Report
Describe the bug
Incorrect Optional (Patch?) results on types which look like Error
Reproduce the bug
type A = O.Optional<{ name: string; message: string }, 'some'>;
Expected behavior
A should be like
{ name: string; message: string }
Actual behavior
A is an empty object - {}
Possible Solution
I think it's related to ignoring built-in types in PatchFlat. But I have no competence in toolbelt's internals.
@millsp and co-authors: so many thanks to you for this kit! Everyday tool for years!