autodoc: add typedef to zigAnalysis file, just in case

This commit is contained in:
Reece Van Atta 2022-03-21 13:41:59 -04:00 committed by Andrew Kelley
parent e39d1ae78f
commit 9cd9a390ae

View File

@ -210,7 +210,10 @@ pub fn generateZirData(self: *Autodoc) !void {
const data_js_f = output_dir.createFile("data.js", .{}) catch unreachable;
defer data_js_f.close();
const out = data_js_f.writer();
out.print("zigAnalysis=", .{}) catch unreachable;
out.print(
\\ /** @type {{DocData}} */
\\ var zigAnalysis=
, .{}) catch unreachable;
std.json.stringify(
data,
.{