Add proper custom scalar type definitions
Update Relay's GraphQL scalar types by adding explicit type definitions in package.json. This change: - Defines custom scalar types for Datetime and CursorKey as strings - Updates generated TypeScript files to use string types instead of any - Improves type safety across the application by replacing any with proper types This change provides better TypeScript type checking and reduces implicit any usage throughout the codebase. Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
@@ -67,6 +67,10 @@
|
||||
"language": "typescript",
|
||||
"schema": "../../pkg/api/console/v1/schema.graphql",
|
||||
"noFutureProofEnums": true,
|
||||
"customScalarTypes": {
|
||||
"Datetime": "string",
|
||||
"CursorKey": "string"
|
||||
},
|
||||
"excludes": [
|
||||
"**/node_modules/**",
|
||||
"**/__mocks__/**",
|
||||
|
||||
Reference in New Issue
Block a user