Introduce ID, Int, and Float Types #31
Labels
🕹 aspect: interface
Concerns end-users' experience with the software
⭐ goal: addition
Addition of new feature
🟨 priority: medium
Not blocking but should be fixed soon
released
🏁 status: ready for de
Ready for work
Description:
Currently, in our Pylon implementation, we are using the
Number
scalar type to represent numeric values. However, JavaScript only has a singlenumber
type that encompasses both integers and floats. This can lead to challenges when mapping to GraphQL's distinctInt
andFloat
types.To enhance type clarity and provide better support for GraphQL features like syntax highlighting and validation, I propose the introduction of ID, Int, and Float types in Pylon. This will allow us to use GraphQL's
Int
andFloat
types directly instead of relying on theNumber
scalar.Implementation Example:
Benefits:
ref: TypeStrong/typedoc#1502
The text was updated successfully, but these errors were encountered: