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:
gearnode
2025-02-28 12:17:09 +01:00
parent 7329039b32
commit 367cf02e60
14 changed files with 52 additions and 48 deletions

View File

@@ -67,6 +67,10 @@
"language": "typescript",
"schema": "../../pkg/api/console/v1/schema.graphql",
"noFutureProofEnums": true,
"customScalarTypes": {
"Datetime": "string",
"CursorKey": "string"
},
"excludes": [
"**/node_modules/**",
"**/__mocks__/**",