You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suspect this change was not intentional so reporting it.. I was previously on v13.0.23 and in the typings changes since the programmatic generateApi function's typings no longer allow partial extractingOptions config to be provided.
This is still typed as Partial<ExtractingOptions> on CodeGenConfig here where defaults are defined:
/** extra configuration for extracting type names operations */
extractingOptions?: Partial<ExtractingOptions>;
My workaround for now casting to any
The text was updated successfully, but these errors were encountered:
pushred
changed the title
New typings no longer allow partial extractingOptions on GenerateApiConfiguration
New typings no longer allow partial extractingOptions on generateApi config
Apr 21, 2025
Uh oh!
There was an error while loading. Please reload this page.
I suspect this change was not intentional so reporting it.. I was previously on v13.0.23 and in the typings changes since the programmatic
generateApi
function's typings no longer allow partialextractingOptions
config to be provided.This is still typed as
Partial<ExtractingOptions>
onCodeGenConfig
here where defaults are defined:swagger-typescript-api/src/configuration.ts
Lines 183 to 204 in 75366cf
But it looks like that is overridden by the parameter type here:
swagger-typescript-api/src/index.ts
Line 6 in 75366cf
swagger-typescript-api/types/index.ts
Lines 171 to 172 in 75366cf
In the earlier version
index.d.ts
typed this prop asCodeGenConfig
still does:swagger-typescript-api/types/index.d.ts
Lines 180 to 181 in 5a00cd5
My workaround for now casting to
any
The text was updated successfully, but these errors were encountered: