Skip to content

Commit 44eef0e

Browse files
committed
Typescript generation: fix headers
1 parent 1917fa8 commit 44eef0e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/reference/adoc/defs/ts/typescript.clj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,9 @@
267267

268268

269269
(defn add-header [ts version-key]
270-
(str "// Type definitions for AnyChart JavaScript Charting Library" (str ", v" version-key)
270+
(str "// Type definitions for AnyChart JavaScript Charting Library" (str ", " (if (string/starts-with? version-key "v")
271+
version-key
272+
(str "v" version-key)))
271273
"\n// Project: https://www.anychart.com/\n"
272274
"// Definitions by: AnyChart <https://www.anychart.com>\n"
273275
ts))
@@ -297,7 +299,9 @@
297299

298300

299301
(defn add-graphics-js-header [ts version-key]
300-
(str "// Type definitions for GraphicsJS JavaScript Graphics Library" (str ", v" version-key)
302+
(str "// Type definitions for GraphicsJS JavaScript Graphics Library" (str ", " (if (string/starts-with? version-key "v")
303+
version-key
304+
(str "v" version-key)))
301305
"\n// Project: http://www.graphicsjs.org/\n"
302306
"// Definitions by: AnyChart <https://www.anychart.com>\n"
303307
ts))

0 commit comments

Comments
 (0)