diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-26 22:29:30 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-26 22:41:21 +1000 |
commit | dbaf39237ae3a41b6b1ac6a6cd3486129599b815 (patch) | |
tree | 350cca4889d0804445eddbd8467d274b27307776 /scripts/schema.js | |
parent | Remove the cdn storage location log (diff) | |
download | server-dbaf39237ae3a41b6b1ac6a6cd3486129599b815.tar.xz |
Prettier
Diffstat (limited to 'scripts/schema.js')
-rw-r--r-- | scripts/schema.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/schema.js b/scripts/schema.js index de062d63..90a346c9 100644 --- a/scripts/schema.js +++ b/scripts/schema.js @@ -11,10 +11,10 @@ const settings = { excludePrivate: true, defaultNumberType: "integer", noExtraProps: true, - defaultProps: false + defaultProps: false, }; const compilerOptions = { - strictNullChecks: true + strictNullChecks: true, }; const Excluded = [ "DefaultSchema", @@ -47,11 +47,17 @@ function modify(obj) { } function main() { - const program = TJS.programFromConfig("tsconfig.json") + const program = TJS.programFromConfig("tsconfig.json"); const generator = TJS.buildGenerator(program, settings); if (!generator || !program) return; - let schemas = generator.getUserSymbols().filter((x) => (x.endsWith("Schema") || x.endsWith("Response")) && !Excluded.includes(x)); + let schemas = generator + .getUserSymbols() + .filter( + (x) => + (x.endsWith("Schema") || x.endsWith("Response")) && + !Excluded.includes(x), + ); console.log(schemas); var definitions = {}; |