Skip to content

Commit

Permalink
Allow arbitrary SFAPI versions in Codegen for development (#970)
Browse files Browse the repository at this point in the history
* Make add options to hydrogen-codegen and allow it to generate types from schema

* Add a hidden --force-sfapi-version to Codegen for development

* Allow passing a token

* Oclif manifest

* Changesets
  • Loading branch information
frandiox committed Jun 5, 2023
1 parent 8ccf6db commit 6b8537b
Show file tree
Hide file tree
Showing 9 changed files with 240 additions and 93 deletions.
15 changes: 15 additions & 0 deletions .changeset/strong-otters-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
'@shopify/hydrogen-codegen': patch
---

The preset now accepts options to modify the default behavior.

```ts
type HydrogenPresetConfig = {
namespacedImportName?: string;
importTypesFrom?: string;
importTypes?: boolean;
skipTypenameInOperations?: boolean;
interfaceExtension?: (options) => string;
};
```
Loading

0 comments on commit 6b8537b

Please sign in to comment.