@vaadin/hilla-generator-core 24.8.0-alpha2 → 24.8.0-alpha3

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.
@@ -1,7 +1,12 @@
1
1
  import type { $Refs } from "@apidevtools/swagger-parser";
2
+ import type DependencyManager from "@vaadin/hilla-generator-utils/dependencies/DependencyManager.js";
2
3
  import type { OpenAPIV3 } from "openapi-types";
3
4
  import type { SourceFile, TypeNode } from "typescript";
4
- export type TransferTypeMaker = (typeArguments: readonly TypeNode[] | undefined) => TypeNode;
5
+ export type TransferTypeMakerContext = Readonly<{
6
+ dependencies: DependencyManager
7
+ typeArguments?: readonly TypeNode[]
8
+ }>;
9
+ export type TransferTypeMaker = (context: TransferTypeMakerContext) => TypeNode;
5
10
  export type TransferTypes = Map<string, TransferTypeMaker>;
6
11
  export type SharedStorage = Readonly<{
7
12
  api: OpenAPIV3.Document
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/hilla-generator-core",
3
- "version": "24.8.0-alpha2",
3
+ "version": "24.8.0-alpha3",
4
4
  "description": "A Hilla tool to generate TypeScript code from the OpenAPI document",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -67,9 +67,9 @@
67
67
  },
68
68
  "dependencies": {
69
69
  "@apidevtools/swagger-parser": "10.1.1",
70
- "@vaadin/hilla-generator-utils": "24.8.0-alpha2",
70
+ "@vaadin/hilla-generator-utils": "24.8.0-alpha3",
71
71
  "meow": "13.2.0",
72
72
  "openapi-types": "12.1.3",
73
- "typescript": "5.7.3"
73
+ "typescript": "5"
74
74
  }
75
75
  }