@kubb/ts-codegen
Advanced tools
Comparing version 0.56.2 to 0.56.3
@@ -64,6 +64,6 @@ import ts from 'typescript'; | ||
declare const print: (elements: ts.Node | Array<ts.Node | undefined>, fileName?: string) => string; | ||
declare function print(elements: ts.Node | Array<ts.Node | undefined>, fileName?: string): string; | ||
declare const writeIndexes: (root: string, output: string, options: Parameters<typeof TreeNode.build>[1]) => Promise<void>[] | undefined; | ||
declare function writeIndexes(root: string, output: string, options: Parameters<typeof TreeNode.build>[1]): Promise<void>[] | undefined; | ||
export { appendJSDocToNode, createEnumDeclaration, createExportDeclaration, createImportDeclaration, createIndexSignature, createIntersectionDeclaration, createJSDoc, createParameter, createPropertySignature, createQuestionToken, createTypeAliasDeclaration, isValidIdentifier, modifier, print, questionToken, writeIndexes }; |
@@ -150,3 +150,3 @@ import { createRequire } from 'module'; | ||
var { factory: factory2 } = ts; | ||
var print = (elements, fileName = "print.ts") => { | ||
function print(elements, fileName = "print.ts") { | ||
let nodes = []; | ||
@@ -163,4 +163,4 @@ if (Array.isArray(elements)) { | ||
return outputFile; | ||
}; | ||
var writeIndexes = (root, output, options) => { | ||
} | ||
function writeIndexes(root, output, options) { | ||
const tree = TreeNode.build(output, { extensions: /\.ts/, ...options }); | ||
@@ -216,3 +216,3 @@ if (!tree) { | ||
return files.map((file) => write(file.source, file.path)); | ||
}; | ||
} | ||
@@ -219,0 +219,0 @@ export { appendJSDocToNode, createEnumDeclaration, createExportDeclaration, createImportDeclaration, createIndexSignature, createIntersectionDeclaration, createJSDoc, createParameter, createPropertySignature, createQuestionToken, createTypeAliasDeclaration, isValidIdentifier, modifier, print, questionToken, writeIndexes }; |
{ | ||
"name": "@kubb/ts-codegen", | ||
"version": "0.56.2", | ||
"version": "0.56.3", | ||
"description": "Generator ts-codegen", | ||
@@ -44,3 +44,3 @@ "repository": { | ||
"dependencies": { | ||
"@kubb/core": "0.56.2", | ||
"@kubb/core": "0.56.3", | ||
"typescript": "^4.9.5" | ||
@@ -47,0 +47,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
51617
+ Added@kubb/core@0.56.3(transitive)
- Removed@kubb/core@0.56.2(transitive)
Updated@kubb/core@0.56.3