@kubb/react
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -270,2 +270,6 @@ import * as KubbFile from '@kubb/fs/types'; | ||
/** | ||
* Type to make the const being typed | ||
*/ | ||
type?: string; | ||
/** | ||
* Options for JSdocs. | ||
@@ -280,3 +284,3 @@ */ | ||
}; | ||
declare function Const({ name, export: canExport, JSDoc, asConst, children }: Props$1): KubbNode; | ||
declare function Const({ name, export: canExport, type, JSDoc, asConst, children }: Props$1): KubbNode; | ||
declare namespace Const { | ||
@@ -283,0 +287,0 @@ var displayName: string; |
@@ -772,3 +772,3 @@ import process from 'node:process'; | ||
Type.displayName = "KubbType"; | ||
function Const({ name, export: canExport, JSDoc, asConst, children }) { | ||
function Const({ name, export: canExport, type, JSDoc, asConst, children }) { | ||
return /* @__PURE__ */ jsxs(Fragment, { children: [ | ||
@@ -786,5 +786,13 @@ JSDoc?.comments && /* @__PURE__ */ jsxs(Fragment, { children: [ | ||
name, | ||
" =", | ||
/* @__PURE__ */ jsx(Text.Space, {}) | ||
] }), | ||
type && /* @__PURE__ */ jsxs(Fragment, { children: [ | ||
/* @__PURE__ */ jsx(Text, { children: ":" }), | ||
/* @__PURE__ */ jsx(Text, { children: type }), | ||
/* @__PURE__ */ jsx(Text.Space, {}) | ||
] }), | ||
/* @__PURE__ */ jsxs(Text, { children: [ | ||
"=", | ||
/* @__PURE__ */ jsx(Text.Space, {}) | ||
] }), | ||
/* @__PURE__ */ jsx(Text, { children }), | ||
@@ -791,0 +799,0 @@ asConst && /* @__PURE__ */ jsxs(Text, { children: [ |
{ | ||
"name": "@kubb/react", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "Generator react", | ||
@@ -79,5 +79,5 @@ "keywords": [ | ||
"ws": "^8.18.0", | ||
"@kubb/core": "3.3.0", | ||
"@kubb/fs": "3.3.0", | ||
"@kubb/parser-ts": "3.3.0" | ||
"@kubb/core": "3.3.1", | ||
"@kubb/fs": "3.3.1", | ||
"@kubb/parser-ts": "3.3.1" | ||
}, | ||
@@ -91,4 +91,4 @@ "devDependencies": { | ||
"typescript": "^5.7.2", | ||
"@kubb/config-ts": "3.3.0", | ||
"@kubb/config-tsup": "3.3.0" | ||
"@kubb/config-ts": "3.3.1", | ||
"@kubb/config-tsup": "3.3.1" | ||
}, | ||
@@ -95,0 +95,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
307502
4180
+ Added@kubb/core@3.3.1(transitive)
+ Added@kubb/fs@3.3.1(transitive)
+ Added@kubb/parser-ts@3.3.1(transitive)
+ Added@kubb/types@3.3.1(transitive)
+ Addednatural-orderby@5.0.0(transitive)
- Removed@kubb/core@3.3.0(transitive)
- Removed@kubb/fs@3.3.0(transitive)
- Removed@kubb/parser-ts@3.3.0(transitive)
- Removed@kubb/types@3.3.0(transitive)
Updated@kubb/core@3.3.1
Updated@kubb/fs@3.3.1
Updated@kubb/parser-ts@3.3.1