Skip to content

Commit

Permalink
chore(test-data): narrowly introspect scalar types (#730)
Browse files Browse the repository at this point in the history
* chore(test-data): introspect scalar types with specificity

* chore(test-data): changeset
  • Loading branch information
jaikamat authored Dec 20, 2024
1 parent 2461b05 commit a83c452
Show file tree
Hide file tree
Showing 4 changed files with 1,683 additions and 198 deletions.
5 changes: 5 additions & 0 deletions .changeset/strong-toys-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commercetools-test-data/graphql-types': patch
---

Use narrow types for scalar types
15 changes: 15 additions & 0 deletions codegen.ctp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ extensions:
typesPrefix: TCtp
addUnderscoreToArgsType: true
useImplementingTypes: true
scalars:
Long: number
DateTime: string
Country: string
Locale: string
Date: string
Json: '{ [key: string]: unknown }'
Currency: string
KeyReferenceInput: string
SearchFilter: string
SearchSort: string
YearMonth: string
BigDecimal: string
Time: string
Set: 'unknown[]'
hooks:
afterAllFileWrite:
- prettier --write
Expand Down
Loading

0 comments on commit a83c452

Please sign in to comment.