You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user is asking why the attachPropertySignature function in TypeScript has different return types for its curried and non-curried versions. Specifically, the curried version returns a Schema, while the non-curried version returns a SchemaClass. Another user, @maxwellbrown, suggests that this might have been an oversight and tags @gcanti for further clarification.
Key Takeaways:
Curried vs Non-Curried Return Types: The curried version of attachPropertySignature returns a Schema, whereas the non-curried version returns a SchemaClass.
Potential Oversight: There is a possibility that this difference in return types might be an oversight.
Seeking Clarification: The user has tagged @gcanti, possibly a maintainer or expert, for further clarification on this issue.
Summary
The user is asking why the
attachPropertySignature
function in TypeScript has different return types for its curried and non-curried versions. Specifically, the curried version returns aSchema
, while the non-curried version returns aSchemaClass
. Another user, @maxwellbrown, suggests that this might have been an oversight and tags @gcanti for further clarification.Key Takeaways:
attachPropertySignature
returns aSchema
, whereas the non-curried version returns aSchemaClass
.Discord thread
https://discord.com/channels/795981131316985866/1270775673279221770
The text was updated successfully, but these errors were encountered: