@kubb/parser-ts
Advanced tools
Comparing version
@@ -9,4 +9,6 @@ import ts, { PrinterOptions } from 'typescript'; | ||
} & PrinterOptions; | ||
declare function print(elements: ts.Node | Array<ts.Node | undefined> | null, { source, baseName, removeComments, noEmitHelpers, newLine }?: Options): string; | ||
declare function print(elements: Array<ts.Node>, { source, baseName, removeComments, noEmitHelpers, newLine }?: Options): string; | ||
export { print }; | ||
declare function format(source: string): string; | ||
export { format, print }; |
@@ -29,4 +29,9 @@ export { factory_exports as factory } from './chunk-2BN5RQSZ.js'; | ||
export { print }; | ||
// src/format.ts | ||
function format(source) { | ||
return print([], { source, noEmitHelpers: false }); | ||
} | ||
export { format, print }; | ||
//# sourceMappingURL=index.js.map | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@kubb/parser-ts", | ||
"version": "3.0.0-alpha.12", | ||
"version": "3.0.0-alpha.13", | ||
"description": "TypeScript parser", | ||
@@ -56,7 +56,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"prettier": "^3.3.3", | ||
"tsup": "^8.2.4", | ||
"@kubb/config-biome": "3.0.0-alpha.12", | ||
"@kubb/config-ts": "3.0.0-alpha.12", | ||
"@kubb/config-tsup": "3.0.0-alpha.12" | ||
"@kubb/config-biome": "3.0.0-alpha.13", | ||
"@kubb/config-ts": "3.0.0-alpha.13", | ||
"@kubb/config-tsup": "3.0.0-alpha.13" | ||
}, | ||
@@ -63,0 +62,0 @@ "engines": { |
@@ -30,2 +30,15 @@ <div align="center"> | ||
</div> | ||
## Supporting Kubb | ||
Kubb uses an MIT-licensed open source project with its ongoing development made possible entirely by the support of Sponsors. If you would like to become a sponsor, please consider: | ||
- [Become a Sponsor on GitHub](https://github.com/sponsors/stijnvanhulle) | ||
<p align="center"> | ||
<a href="https://github.com/sponsors/stijnvanhulle"> | ||
<img src="https://raw.githubusercontent.com/stijnvanhulle/sponsors/main/sponsors.svg" alt="My sponsors" /> | ||
</a> | ||
</p> | ||
<!-- Badges --> | ||
@@ -32,0 +45,0 @@ |
export { print } from './print.ts' | ||
export { format } from './format.ts' | ||
export type { default as ts } from 'typescript' | ||
export * as factory from './factory.ts' |
@@ -27,3 +27,3 @@ import ts from 'typescript' | ||
export function print( | ||
elements: ts.Node | Array<ts.Node | undefined> | null, | ||
elements: Array<ts.Node>, | ||
{ source = '', baseName = 'print.ts', removeComments, noEmitHelpers, newLine = ts.NewLineKind.LineFeed }: Options = {}, | ||
@@ -30,0 +30,0 @@ ): string { |
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
154843
0.98%4
-20%25
4.17%1787
0.9%57
29.55%