Skip to content

Commit f1440db

Browse files
committed
Add more types
1 parent 18712a9 commit f1440db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

javascript/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ import { setupSnippetsJson } from "./processingFunctions/processSnippetJson.js";
3737
import { createTocJson } from "./generateTocJson.js";
3838
import { setupReferencesJson } from "./processingFunctions/processReferenceJson.js";
3939
import { createMain } from "./commands/utils.js";
40+
import type { WriteBuffer } from "./types.js";
4041

4142
export let parseType;
4243
let version;
43-
let outputDir; // depends on parseType
44+
let outputDir: string; // depends on parseType
4445

4546
const __dirname = path.resolve(import.meta.dirname);
4647
const 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)
230231
const 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 => {

0 commit comments

Comments
 (0)