Comparing version 4.1.0 to 4.2.0
@@ -10,2 +10,3 @@ import { Import } from './Import'; | ||
export declare function arrayOf(...elements: unknown[]): Node; | ||
export declare function joinCode(chunks: Code[], separator?: string): Code; | ||
/** Creates an import that will be auto-imported at the top of the output file. */ | ||
@@ -12,0 +13,0 @@ export declare function imp(spec: string, opts?: { |
@@ -27,2 +27,10 @@ "use strict"; | ||
exports.arrayOf = arrayOf; | ||
function joinCode(chunks, separator = '') { | ||
const literals = ['']; | ||
for (let i = 0; i < chunks.length - 1; i++) { | ||
literals.push(separator); | ||
} | ||
return new Code_1.Code(literals, chunks); | ||
} | ||
exports.joinCode = joinCode; | ||
/** Creates an import that will be auto-imported at the top of the output file. */ | ||
@@ -29,0 +37,0 @@ function imp(spec, opts = {}) { |
{ | ||
"name": "ts-poet", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "code generation DSL for TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
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
100097
1842