@kubb/ts-codegen
Advanced tools
Comparing version 1.0.0-beta.19 to 1.0.0
@@ -74,5 +74,11 @@ import ts from 'typescript'; | ||
}): ts.IntersectionTypeNode; | ||
declare function createTupleDeclaration({ nodes }: { | ||
nodes: ts.TypeNode[]; | ||
}): ts.TupleTypeNode; | ||
declare function createUnionDeclaration({ nodes }: { | ||
nodes: ts.TypeNode[]; | ||
}): ts.UnionTypeNode; | ||
declare function print(elements: ts.Node | Array<ts.Node | undefined>, fileName?: string): string; | ||
export { appendJSDocToNode, createEnumDeclaration, createExportDeclaration, createImportDeclaration, createIndexSignature, createIntersectionDeclaration, createJSDoc, createParameter, createPropertySignature, createQuestionToken, createTypeAliasDeclaration, isValidIdentifier, modifier, print, questionToken }; | ||
export { appendJSDocToNode, createEnumDeclaration, createExportDeclaration, createImportDeclaration, createIndexSignature, createIntersectionDeclaration, createJSDoc, createParameter, createPropertySignature, createQuestionToken, createTupleDeclaration, createTypeAliasDeclaration, createUnionDeclaration, isValidIdentifier, modifier, print, questionToken }; |
@@ -208,2 +208,8 @@ import { createRequire } from 'module'; | ||
} | ||
function createTupleDeclaration({ nodes }) { | ||
return factory.createTupleTypeNode(nodes); | ||
} | ||
function createUnionDeclaration({ nodes }) { | ||
return factory.createUnionTypeNode(nodes); | ||
} | ||
var { factory: factory2 } = ts; | ||
@@ -224,4 +230,4 @@ function print(elements, fileName = "print.ts") { | ||
export { appendJSDocToNode, createEnumDeclaration, createExportDeclaration, createImportDeclaration, createIndexSignature, createIntersectionDeclaration, createJSDoc, createParameter, createPropertySignature, createQuestionToken, createTypeAliasDeclaration, isValidIdentifier, modifier, print, questionToken }; | ||
export { appendJSDocToNode, createEnumDeclaration, createExportDeclaration, createImportDeclaration, createIndexSignature, createIntersectionDeclaration, createJSDoc, createParameter, createPropertySignature, createQuestionToken, createTupleDeclaration, createTypeAliasDeclaration, createUnionDeclaration, isValidIdentifier, modifier, print, questionToken }; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@kubb/ts-codegen", | ||
"version": "1.0.0-beta.19", | ||
"version": "1.0.0", | ||
"description": "Generator ts-codegen", | ||
@@ -45,3 +45,3 @@ "repository": { | ||
"dependencies": { | ||
"typescript": "^5.0.4" | ||
"typescript": "^5.1.3" | ||
}, | ||
@@ -48,0 +48,0 @@ "devDependencies": { |
@@ -270,1 +270,9 @@ import ts from 'typescript' | ||
} | ||
export function createTupleDeclaration({ nodes }: { nodes: ts.TypeNode[] }) { | ||
return factory.createTupleTypeNode(nodes) | ||
} | ||
export function createUnionDeclaration({ nodes }: { nodes: ts.TypeNode[] }) { | ||
return factory.createUnionTypeNode(nodes) | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
62372
825
1
Updatedtypescript@^5.1.3