Skip to content

Commit

Permalink
Number[] -> number[] in TS definition
Browse files Browse the repository at this point in the history
Add workaround for englercj/tsd-jsdoc#117
  • Loading branch information
mramato committed May 27, 2020
1 parent 16924c3 commit 4d32df1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gulpfile.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -1558,6 +1558,7 @@ function createTypeScriptDefinitions() {
source = source
.replace(/^declare /gm, "export ")
.replace(/CesiumMath/gm, "Math")
.replace(/Number\[]/gm, "number[]") // Workaround https://github.com/englercj/tsd-jsdoc/issues/117
.replace(
/= "WebGLConstants\.(.+)"/gm,
(match, p1) => `= WebGLConstants.${p1}`
Expand Down

0 comments on commit 4d32df1

Please sign in to comment.