@ng-openapi/http-resource 0.0.21-pr-39-bugfix-missing-rxjs-import-f652172.0 → 0.0.22

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.
Files changed (3) hide show
  1. package/index.cjs +1 -1
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/index.cjs CHANGED
@@ -71,7 +71,7 @@ function getTypeScriptType(schemaOrType, config, formatOrNullable, isNullable, c
71
71
  }
72
72
  if (schema2.type === "array") {
73
73
  const itemType = schema2.items ? getTypeScriptType(schema2.items, config, void 0, void 0, context) : "unknown";
74
- return nullable ? `(${itemType}[] | null)` : `${itemType}[]`;
74
+ return nullable ? `(Array<${itemType}> | null)` : `Array<${itemType}>`;
75
75
  }
76
76
  switch (schema2.type) {
77
77
  case "string":
package/index.js CHANGED
@@ -37,7 +37,7 @@ function getTypeScriptType(schemaOrType, config, formatOrNullable, isNullable, c
37
37
  }
38
38
  if (schema2.type === "array") {
39
39
  const itemType = schema2.items ? getTypeScriptType(schema2.items, config, void 0, void 0, context) : "unknown";
40
- return nullable ? `(${itemType}[] | null)` : `${itemType}[]`;
40
+ return nullable ? `(Array<${itemType}> | null)` : `Array<${itemType}>`;
41
41
  }
42
42
  switch (schema2.type) {
43
43
  case "string":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-openapi/http-resource",
3
- "version": "0.0.21-pr-39-bugfix-missing-rxjs-import-f652172.0",
3
+ "version": "0.0.22",
4
4
  "description": "HTTP Resource plugin for ng-openapi - Angular HTTP utilities with caching and state management",
5
5
  "keywords": [
6
6
  "angular",