feat!: type auto-generation (#6657)

Types are now auto-generated by default.

You can opt-out of this behavior by setting:
```ts
buildConfig({
  // Rest of config
  typescript: {
    autoGenerate: false
  },
})
```
This commit is contained in:
Elliot DeNolf
2024-06-10 13:42:44 -04:00
committed by GitHub
parent 45e86832c2
commit 7309d474ee
81 changed files with 743 additions and 39 deletions

View File

@@ -160,12 +160,15 @@ export async function buildConfigWithDefaults(
secret: 'TEST_SECRET',
sharp,
telemetry: false,
...testConfig,
typescript: {
declare: {
ignoreTSError: true,
},
...testConfig?.typescript,
},
...testConfig,
i18n: {
supportedLanguages: {
de,