api: union undefined

Set the option to generate union undefined types for objects that have
optional items. This will allow us to enable `exactOptionalPropertyTypes`
in our tsconfig [1].

[1] This is a recommended setting, see:
https://www.typescriptlang.org/tsconfig/#exactOptionalPropertyTypes
This commit is contained in:
Gianluca Zuccarelli 2024-11-29 13:36:20 +00:00 committed by Lucas Garfield
parent b3b69c3653
commit bad77421ae
16 changed files with 553 additions and 523 deletions

View file

@ -7,6 +7,7 @@ const config: ConfigFile = {
outputFile: '../../src/store/contentSourcesApi.ts',
exportName: 'contentSourcesApi',
hooks: true,
unionUndefined: true,
filterEndpoints: [
'createRepository',
'listRepositories',