File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,11 @@ import { setupSnippetsJson } from "./processingFunctions/processSnippetJson.js";
3737import { createTocJson } from "./generateTocJson.js" ;
3838import { setupReferencesJson } from "./processingFunctions/processReferenceJson.js" ;
3939import { createMain } from "./commands/utils.js" ;
40+ import type { WriteBuffer } from "./types.js" ;
4041
4142export let parseType ;
4243let version ;
43- let outputDir ; // depends on parseType
44+ let outputDir : string ; // depends on parseType
4445
4546const __dirname = path . resolve ( import . meta. dirname ) ;
4647const inputDir = path . join ( __dirname , "../xml" ) ;
@@ -229,7 +230,7 @@ async function recursiveTranslateXml(filepath, option) {
229230// (to recreate non-split Mobile-friendly Web Edition: remove conditional)
230231const createIndexHtml = version => {
231232 const indexFilepath = path . join ( outputDir , "index.html" ) ;
232- const writeToIndex = [ ] ;
233+ const writeToIndex : WriteBuffer = [ ] ;
233234 indexHtml ( writeToIndex ) ;
234235 const stream = fs . createWriteStream ( indexFilepath ) ;
235236 stream . once ( "open" , fd => {
You can’t perform that action at this time.
0 commit comments