@kubb/react
Advanced tools
Comparing version 3.0.0-alpha.26 to 3.0.0-alpha.28
@@ -33,3 +33,3 @@ import * as KubbFile from '@kubb/fs/types'; | ||
type Options = { | ||
type: 'constructor' | 'call' | 'generics'; | ||
type: 'constructor' | 'call'; | ||
transformName?: (name: string) => string; | ||
@@ -46,3 +46,3 @@ transformType?: (type: string) => string; | ||
toConstructor({ valueAsType }?: { | ||
valueAsType: boolean; | ||
valueAsType?: boolean; | ||
}): string; | ||
@@ -49,0 +49,0 @@ } |
@@ -896,3 +896,3 @@ import process from 'node:process'; | ||
} | ||
toConstructor({ valueAsType } = { valueAsType: false }) { | ||
toConstructor({ valueAsType = false } = {}) { | ||
if (valueAsType) { | ||
@@ -899,0 +899,0 @@ Object.entries(this.#params).reduce((acc, [key, item]) => { |
{ | ||
"name": "@kubb/react", | ||
"version": "3.0.0-alpha.26", | ||
"version": "3.0.0-alpha.28", | ||
"description": "Generator react", | ||
@@ -80,5 +80,5 @@ "keywords": [ | ||
"ws": "8.15.0", | ||
"@kubb/core": "3.0.0-alpha.26", | ||
"@kubb/fs": "3.0.0-alpha.26", | ||
"@kubb/parser-ts": "3.0.0-alpha.26" | ||
"@kubb/core": "3.0.0-alpha.28", | ||
"@kubb/fs": "3.0.0-alpha.28", | ||
"@kubb/parser-ts": "3.0.0-alpha.28" | ||
}, | ||
@@ -92,4 +92,4 @@ "devDependencies": { | ||
"typescript": "^5.6.2", | ||
"@kubb/config-ts": "3.0.0-alpha.26", | ||
"@kubb/config-tsup": "3.0.0-alpha.26" | ||
"@kubb/config-ts": "3.0.0-alpha.28", | ||
"@kubb/config-tsup": "3.0.0-alpha.28" | ||
}, | ||
@@ -96,0 +96,0 @@ "engines": { |
@@ -42,3 +42,3 @@ import { camelCase } from '@kubb/core/transformers' | ||
type Options = { | ||
type: 'constructor' | 'call' | 'generics' | ||
type: 'constructor' | 'call' | ||
transformName?: (name: string) => string | ||
@@ -179,3 +179,3 @@ transformType?: (type: string) => string | ||
toConstructor({ valueAsType }: { valueAsType: boolean } = { valueAsType: false }): string { | ||
toConstructor({ valueAsType = false }: { valueAsType?: boolean } = {}): string { | ||
if (valueAsType) { | ||
@@ -196,4 +196,5 @@ Object.entries(this.#params).reduce((acc, [key, item]) => { | ||
} | ||
return getFunctionParams(this.#params, { type: 'constructor' }) | ||
} | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
299389
+ Added@kubb/core@3.0.0-alpha.28(transitive)
+ Added@kubb/fs@3.0.0-alpha.28(transitive)
+ Added@kubb/parser-ts@3.0.0-alpha.28(transitive)
+ Added@kubb/types@3.0.0-alpha.28(transitive)
- Removed@kubb/core@3.0.0-alpha.26(transitive)
- Removed@kubb/fs@3.0.0-alpha.26(transitive)
- Removed@kubb/parser-ts@3.0.0-alpha.26(transitive)
- Removed@kubb/types@3.0.0-alpha.26(transitive)
Updated@kubb/core@3.0.0-alpha.28
Updated@kubb/fs@3.0.0-alpha.28