generators/typescript-fetch


id: generator-opts-client-typescript-fetch title: Config Options for typescript-fetchsidebar_label: typescript-fetch


OptionDescriptionValuesDefault
sortParamsByRequiredFlagSort method arguments to place required parameters before optional parameters.true
ensureUniqueParamsWhether to ensure parameter names are unique in an operation (rename parameters that are not).true
allowUnicodeIdentifiersboolean, toggles whether unicode identifiers are allowed in names or not, default is falsefalse
prependFormOrBodyParametersAdd form or body parameters to the beginning of the parameter list.false
modelPropertyNamingNaming convention for the property: 'camelCase', 'PascalCase', 'snake_case' and 'original', which keeps the original namecamelCase
supportsES6Generate code that conforms to ES6.false
npmNameThe name under which you want to publish generated npm package. Required to generate a full packagenull
npmVersionThe version of your npm package. If not provided, using the version from the OpenAPI specification file.1.0.0
snapshotWhen setting this property to true, the version will be suffixed with -SNAPSHOT.yyyyMMddHHmmfalse
npmRepositoryUse this property to set an url your private npmRepo in the package.jsonnull
withInterfacesSetting this property to true will generate interfaces next to the default class implementations.false
useSingleRequestParameterSetting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter.true
prefixParameterInterfacesSetting this property to true will generate parameter interface declarations prefixed with API class name to avoid name conflicts.false
typescriptThreePlusSetting this property to true will generate TypeScript 3.6+ compatible code.false