global: snapshot

This commit is contained in:
k
2024-09-13 22:59:20 +02:00
parent deffaef2b5
commit bf2034b80c
18 changed files with 5154 additions and 645 deletions

View File

@@ -101,7 +101,7 @@ impl Routes {
.map(|route| format!("\"{}\"", route.url_path))
.join(" | ");
format!("// This file is auto generated by the server\n// Manual changes are forbidden\n\ntype {}Path = {};\n", name, paths)
format!("export type {}Path = {};\n", name, paths)
};
let date_type = map_to_type("Date", &self.date);
@@ -112,7 +112,7 @@ impl Routes {
fs::write(
format!("{WEBSITE_TYPES_PATH}/paths.d.ts"),
format!("{date_type}\n{height_type}\n{last_type}"),
format!("// This file is auto generated by the server\n// Manual changes are forbidden\n\n{date_type}\n{height_type}\n{last_type}"),
)
.unwrap();
}