commit 805b53c94ff2a41a0380e2baaacd5216bbe1fec0
parent c2ebcafb22437743b94c18c5127fcf656680c82a
Author: Nullptrderef <nullptrderef@proton.me>
Date: Sun, 26 May 2024 02:04:06 +0200
a todo
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/contrib/type-extractor/extract-types.mjs b/contrib/type-extractor/extract-types.mjs
@@ -135,6 +135,7 @@ export { ${defines.join(", ")} };
)
).filter((v) => v.result !== null);
// Polyfilling!!!
+ // TODO: Extract these to standalone .rst files!
jobResults.push({
source: "/tmp/net.taler.docs.extracted/_forced_polyfill",
output: path.join(tsDocOutput, "post-polyfill.ts"),
@@ -259,6 +260,7 @@ ${result.result.dtsOutput}`;
Object.entries(exportsByFile)
.map(
([file, exports]) =>
+ // We could use export * from, but then we'd get class conflicts if 2 separate files declare the same type - including if our polyfill overwrites or gets overwritten
`export { ${exports.join(", ")} } from ${JSON.stringify(
"./" + path.basename(file) // TODO: use path.relative
)};`