Skip to content

Commit

Permalink
generate .d.ts output too
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed Nov 24, 2024
1 parent ba85170 commit cd455cd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build-support/typescript-compile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ var x = 3;
"y = 3\n\n###* @type {string} ###\nx @= 3\n"
]
}
# finally, it also generates a .d.ts type definition file:
; cat test-map.d.ts
declare var y: any;
/** @type {string} */
declare var x: string;
'''

assert = require 'assert'
Expand Down Expand Up @@ -149,7 +154,9 @@ checkMappedJsDoc = (mappedCompiled, options) ->
exitCode = if emitResult.emitSkipped then 1 else 0
process.exit exitCode


checkMappedJsDoc byJsPath,
allowJs: yes
checkJs: yes
noEmit: yes
declaration: yes
emitDeclarationOnly: yes

0 comments on commit cd455cd

Please sign in to comment.