@kubb/ts-codegen
Advanced tools
Comparing version 0.51.0 to 0.52.0
@@ -60,2 +60,5 @@ import ts from 'typescript'; | ||
}): (ts.TypeAliasDeclaration | ts.VariableStatement)[]; | ||
declare function createIntersectionDeclaration({ nodes }: { | ||
nodes: ts.TypeNode[]; | ||
}): ts.IntersectionTypeNode; | ||
@@ -66,2 +69,2 @@ declare const print: (elements: ts.Node | Array<ts.Node | undefined>, fileName?: string) => string; | ||
export { appendJSDocToNode, createEnumDeclaration, createExportDeclaration, createImportDeclaration, createIndexSignature, createJSDoc, createParameter, createPropertySignature, createQuestionToken, createTypeAliasDeclaration, isValidIdentifier, modifier, print, questionToken, writeIndexes }; | ||
export { appendJSDocToNode, createEnumDeclaration, createExportDeclaration, createImportDeclaration, createIndexSignature, createIntersectionDeclaration, createJSDoc, createParameter, createPropertySignature, createQuestionToken, createTypeAliasDeclaration, isValidIdentifier, modifier, print, questionToken, writeIndexes }; |
@@ -5,2 +5,3 @@ 'use strict'; | ||
var ts = require('typescript'); | ||
var uniq = require('lodash.uniq'); | ||
var pathParser = require('path'); | ||
@@ -12,2 +13,3 @@ var core = require('@kubb/core'); | ||
var ts__default = /*#__PURE__*/_interopDefault(ts); | ||
var uniq__default = /*#__PURE__*/_interopDefault(uniq); | ||
var pathParser__default = /*#__PURE__*/_interopDefault(pathParser); | ||
@@ -132,3 +134,3 @@ | ||
factory.createObjectLiteralExpression( | ||
enums.map((text) => { | ||
uniq__default.default(enums).map((text) => { | ||
return factory.createPropertyAssignment(factory.createStringLiteral(text.toString()), factory.createStringLiteral(text)); | ||
@@ -156,2 +158,5 @@ }), | ||
} | ||
function createIntersectionDeclaration({ nodes }) { | ||
return factory.createIntersectionTypeNode(nodes); | ||
} | ||
var { factory: factory2 } = ts__default.default; | ||
@@ -229,2 +234,3 @@ var print = (elements, fileName = "print.ts") => { | ||
exports.createIndexSignature = createIndexSignature; | ||
exports.createIntersectionDeclaration = createIntersectionDeclaration; | ||
exports.createJSDoc = createJSDoc; | ||
@@ -231,0 +237,0 @@ exports.createParameter = createParameter; |
{ | ||
"name": "@kubb/ts-codegen", | ||
"version": "0.51.0", | ||
"version": "0.52.0", | ||
"description": "Generator ts-codegen", | ||
@@ -43,6 +43,8 @@ "repository": { | ||
"dependencies": { | ||
"@kubb/core": "0.51.0", | ||
"@kubb/core": "0.52.0", | ||
"lodash.uniq": "^4.5.0", | ||
"typescript": "^4.9.5" | ||
}, | ||
"devDependencies": { | ||
"@types/lodash.uniq": "^4.5.7", | ||
"tsup": "^6.6.3" | ||
@@ -49,0 +51,0 @@ }, |
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
51922
518
3
2
+ Addedlodash.uniq@^4.5.0
+ Added@kubb/core@0.52.0(transitive)
- Removed@kubb/core@0.51.0(transitive)
Updated@kubb/core@0.52.0