@kubb/ast 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
@@ -729,12 +729,14 @@ type FileNode<TMeta extends object = object> = BaseNode & {
729
729
  meta?: TMeta;
730
730
  /**
731
731
  * Optional banner prepended to the generated file content.
732
+ * Accepts `null` so `resolver.resolveBanner()` results can be passed directly.
732
733
  */
733
- banner?: string;
734
+ banner?: string | null;
734
735
  /**
735
736
  * Optional footer appended to the generated file content.
737
+ * Accepts `null` so `resolver.resolveFooter()` results can be passed directly.
736
738
  */
737
- footer?: string;
739
+ footer?: string | null;
738
740
  };
739
741
  //#endregion
740
742
  //#region src/nodes/function.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/ast",
3
- "version": "5.0.0-beta.21",
3
+ "version": "5.0.0-beta.22",
4
4
  "description": "Spec-agnostic AST layer for Kubb. Defines the node tree, visitor pattern, factory functions, and type guards used across all code generation plugins.",
5
5
  "keywords": [
6
6
  "ast",
package/src/nodes/file.ts CHANGED
@@ -221,10 +221,12 @@ export type FileNode<TMeta extends object = object> = BaseNode & {
221
221
  meta?: TMeta
222
222
  /**
223
223
  * Optional banner prepended to the generated file content.
224
+ * Accepts `null` so `resolver.resolveBanner()` results can be passed directly.
224
225
  */
225
- banner?: string
226
+ banner?: string | null
226
227
  /**
227
228
  * Optional footer appended to the generated file content.
229
+ * Accepts `null` so `resolver.resolveFooter()` results can be passed directly.
228
230
  */
229
- footer?: string
231
+ footer?: string | null
230
232
  }