Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

From Discord: Different Return Types in Curried vs Non-Curried attachPropertySignature in TypeScript #3425

Closed
effect-bot opened this issue Aug 7, 2024 · 0 comments · Fixed by #3430
Assignees
Labels
bug Something isn't working schema

Comments

@effect-bot
Copy link

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 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:

  1. Curried vs Non-Curried Return Types: The curried version of attachPropertySignature returns a Schema, whereas the non-curried version returns a SchemaClass.
  2. Potential Oversight: There is a possibility that this difference in return types might be an oversight.
  3. Seeking Clarification: The user has tagged @gcanti, possibly a maintainer or expert, for further clarification on this issue.

Discord thread

https://discord.com/channels/795981131316985866/1270775673279221770

@gcanti gcanti added bug Something isn't working schema labels Aug 8, 2024
@gcanti gcanti self-assigned this Aug 8, 2024
@gcanti gcanti linked a pull request Aug 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working schema
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants