@kubb/renderer-jsx 5.0.0-beta.21 → 5.0.0-beta.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.
package/dist/index.d.ts CHANGED
@@ -152,12 +152,14 @@ type Props$2<TMeta> = BaseProps & {
152
152
  meta?: TMeta;
153
153
  /**
154
154
  * Text prepended to the generated file content before any source blocks.
155
+ * Accepts `null` so `resolver.resolveBanner()` results can be passed directly.
155
156
  */
156
- banner?: string;
157
+ banner?: string | null;
157
158
  /**
158
159
  * Text appended to the generated file content after all source blocks.
160
+ * Accepts `null` so `resolver.resolveFooter()` results can be passed directly.
159
161
  */
160
- footer?: string;
162
+ footer?: string | null;
161
163
  /**
162
164
  * Child nodes rendered as the content of this file (source blocks, imports, exports).
163
165
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/renderer-jsx",
3
- "version": "5.0.0-beta.21",
3
+ "version": "5.0.0-beta.22",
4
4
  "description": "JSX-based renderer for Kubb. Provides a custom React runtime, reconciler, and built-in components (File, Function, Type, Const) for component-based, type-safe code generation.",
5
5
  "keywords": [
6
6
  "codegen",
@@ -75,7 +75,7 @@
75
75
  "registry": "https://registry.npmjs.org/"
76
76
  },
77
77
  "dependencies": {
78
- "@kubb/ast": "5.0.0-beta.21"
78
+ "@kubb/ast": "5.0.0-beta.22"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@types/react": "^19.2.14",
@@ -41,12 +41,14 @@ type Props<TMeta> = BaseProps & {
41
41
  meta?: TMeta
42
42
  /**
43
43
  * Text prepended to the generated file content before any source blocks.
44
+ * Accepts `null` so `resolver.resolveBanner()` results can be passed directly.
44
45
  */
45
- banner?: string
46
+ banner?: string | null
46
47
  /**
47
48
  * Text appended to the generated file content after all source blocks.
49
+ * Accepts `null` so `resolver.resolveFooter()` results can be passed directly.
48
50
  */
49
- footer?: string
51
+ footer?: string | null
50
52
  /**
51
53
  * Child nodes rendered as the content of this file (source blocks, imports, exports).
52
54
  */