commit 03b54e9690f0fe291ca26145ebf38c89b59fd813
parent d2a1c4a73b129676846d1ef6b31bee21fb2e2035
Author: Nullptrderef <nullptrderef@proton.me>
Date: Fri, 28 Jun 2024 13:02:48 +0200
fix: string !== String
Diffstat:
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/contrib/type-extractor/extract-types.mjs b/contrib/type-extractor/extract-types.mjs
@@ -1,3 +1,5 @@
+// Usage: $0 <path to documentation root>
+
import fsSync, { promises as fs } from "fs";
import ts from "typescript";
import * as path from "path";
@@ -235,6 +237,12 @@ export { ${defines.join(", ")} };
return `import { ${v} } from ${JSON.stringify(
"./" + path.basename(fileByExport[v])
)}`;
+ else if (["String", "Boolean"].includes(v))
+ console.warn(
+ `In file ${
+ result.source
+ }: Please use ${v.toLocaleLowerCase()} instead of ${v}`
+ );
console.warn("Could not find reference to", v);
return "// WARN: UNKNOWN REF: " + JSON.stringify(v);
})
diff --git a/core/api-auditor.rst b/core/api-auditor.rst
@@ -2360,10 +2360,10 @@ This section contains information about the auditing progress an auditor has mad
interface Progress {
// Key associated with a given progress point
- progress_key : String;
+ progress_key: string;
// How much of the exchanges data has been processed so far
- progress_offset : Integer;
+ progress_offset: Integer;
}