mobx-tanstack-query-api 0.39.1 → 0.40.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli.d.ts CHANGED
@@ -12,6 +12,7 @@ interface RemoveUnusedTypesParams {
12
12
  }
13
13
 
14
14
  type CodegenDataUtils = {
15
+ Ts: any;
15
16
  _: LoDashStatic;
16
17
  getInlineParseContent: (requestParams: AnyObject) => string;
17
18
  formatModelName: (modelName: string) => string;
package/cli.js CHANGED
@@ -1583,7 +1583,7 @@ const generateApi = async (params) => {
1583
1583
  ...swaggerTypescriptApiCodegenBaseParams,
1584
1584
  ...inputToCodegenInput(params.mixinInput),
1585
1585
  hooks: {
1586
- onInit: (configuration, codegenProcess2) => {
1586
+ onInit: (configuration, _codegenProcess) => {
1587
1587
  mixinSwaggerSchema = cloneDeep(configuration.swaggerSchema);
1588
1588
  },
1589
1589
  onPrepareConfig: prepareConfig,
@@ -1630,8 +1630,8 @@ const generateApi = async (params) => {
1630
1630
  }
1631
1631
  }
1632
1632
  const codegenFs = codegenProcess.fileSystem;
1633
- codegenFs.cleanDir(paths.outputDir);
1634
- codegenFs.createDir(paths.outputDir);
1633
+ await Promise.resolve(codegenFs.cleanDir(paths.outputDir));
1634
+ await Promise.resolve(codegenFs.createDir(paths.outputDir));
1635
1635
  const filterTypes = unpackFilterOption(
1636
1636
  params.filterTypes,
1637
1637
  (modelType) => modelType.name