Custom Scalars and TypeScript Mappings

GraphQL custom scalars such as DateTime, JSON, or UUID require an application-level representation. Code generation tools can map these scalars to TypeScript types.

For example, a DateTime scalar might map to string when the API uses ISO-8601 strings, or to Date in a specific client-side representation. The mapping should match the actual runtime serialization behavior.