tsafe icon indicating copy to clipboard operation
tsafe copied to clipboard

Error identifying equality creating z.custom

Open sonegobruno opened this issue 1 year ago • 4 comments

I encountered a problem identifying equality between types generated by z.custom on an object

General file Captura de tela de 2023-11-16 09-19-04

Schema type inferred Captura de tela de 2023-11-16 09-24-56

Type created Captura de tela de 2023-11-16 09-24-59

It can be seen that when the schema assert is performed directly it passes without problems. However, when asserting within an object it presents an error even though it has the same typing.

I also noticed that when determining the attribute as optional the error disappears.

sonegobruno avatar Nov 16 '23 12:11 sonegobruno