@kubb/parser
Advanced tools
Comparing version 2.0.0-alpha.2 to 2.0.0-alpha.3
@@ -67,2 +67,6 @@ import ts from 'typescript'; | ||
}): ts.TypeAliasDeclaration; | ||
declare function createNamespaceDeclaration({ statements, name, }: { | ||
name: string; | ||
statements: ts.Statement[]; | ||
}): ts.ModuleDeclaration; | ||
/** | ||
@@ -125,2 +129,2 @@ * In { propertyName: string; name?: string } is `name` being used to make the type more unique when multiple same names are used. | ||
export { appendJSDocToNode, createArrayTypeNode, createEnumDeclaration, createExportDeclaration, createIdentifier, createImportDeclaration, createIndexSignature, createIntersectionDeclaration, createJSDoc, createLiteralTypeNode, createNull, createNumericLiteral, createOmitDeclaration, createParameterSignature, createPropertySignature, createQuestionToken, createStringLiteral, createTupleDeclaration, createTypeAliasDeclaration, createTypeLiteralNode, createTypeReferenceNode, createUnionDeclaration, keywordTypeNodes, modifiers }; | ||
export { appendJSDocToNode, createArrayTypeNode, createEnumDeclaration, createExportDeclaration, createIdentifier, createImportDeclaration, createIndexSignature, createIntersectionDeclaration, createJSDoc, createLiteralTypeNode, createNamespaceDeclaration, createNull, createNumericLiteral, createOmitDeclaration, createParameterSignature, createPropertySignature, createQuestionToken, createStringLiteral, createTupleDeclaration, createTypeAliasDeclaration, createTypeLiteralNode, createTypeReferenceNode, createUnionDeclaration, keywordTypeNodes, modifiers }; |
@@ -140,2 +140,13 @@ import { createRequire } from 'module'; | ||
} | ||
function createNamespaceDeclaration({ | ||
statements, | ||
name | ||
}) { | ||
return factory.createModuleDeclaration( | ||
[factory.createToken(ts.SyntaxKind.ExportKeyword)], | ||
factory.createIdentifier(name), | ||
factory.createModuleBlock(statements), | ||
ts.NodeFlags.Namespace | ||
); | ||
} | ||
function createImportDeclaration({ | ||
@@ -309,4 +320,4 @@ name, | ||
export { appendJSDocToNode, createArrayTypeNode, createEnumDeclaration, createExportDeclaration, createIdentifier, createImportDeclaration, createIndexSignature, createIntersectionDeclaration, createJSDoc, createLiteralTypeNode, createNull, createNumericLiteral, createOmitDeclaration, createParameterSignature, createPropertySignature, createQuestionToken, createStringLiteral, createTupleDeclaration, createTypeAliasDeclaration, createTypeLiteralNode, createTypeReferenceNode, createUnionDeclaration, keywordTypeNodes, modifiers }; | ||
export { appendJSDocToNode, createArrayTypeNode, createEnumDeclaration, createExportDeclaration, createIdentifier, createImportDeclaration, createIndexSignature, createIntersectionDeclaration, createJSDoc, createLiteralTypeNode, createNamespaceDeclaration, createNull, createNumericLiteral, createOmitDeclaration, createParameterSignature, createPropertySignature, createQuestionToken, createStringLiteral, createTupleDeclaration, createTypeAliasDeclaration, createTypeLiteralNode, createTypeReferenceNode, createUnionDeclaration, keywordTypeNodes, modifiers }; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=factory.js.map |
{ | ||
"name": "@kubb/parser", | ||
"version": "2.0.0-alpha.2", | ||
"version": "2.0.0-alpha.3", | ||
"description": "Generator parser", | ||
@@ -48,5 +48,5 @@ "keywords": [ | ||
"tsup": "^7.2.0", | ||
"@kubb/eslint-config": "1.1.8", | ||
"@kubb/ts-config": "0.1.0", | ||
"@kubb/tsup-config": "1.1.8" | ||
"@kubb/tsup-config": "1.1.8", | ||
"@kubb/eslint-config": "1.1.8" | ||
}, | ||
@@ -53,0 +53,0 @@ "packageManager": "pnpm@8.3.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
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
90327
865