From df20068d6220f88382f7245dc1ae35983b2b4f08 Mon Sep 17 00:00:00 2001 From: akaster99 Date: Mon, 25 Sep 2023 09:50:22 +0900 Subject: [PATCH] fix: hide private --- .DS_Store | Bin 0 -> 6148 bytes package.json | 2 +- src/ainize.ts | 4 ++-- typedoc.json | 17 +++++++++++++++-- 4 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ca2b7874ee44cef1857d5487e8c8184223131c55 GIT binary patch literal 6148 zcmeH~F$w}f3`G;&La^D=avBfd4F=H@>;(h`8(BfodXDZ-CJ2t!BJu;tpJXO1`-+{7 zi0JxuSc&u^GJ~7S(n4d3ypw~RWiQwJa2ZeM@rat$Cvn!+@Lrnz*rt#G36KB@kN^q% z5COZlVY7KvMiL+a5_l4@??Zx{=Fn2rKOG1@0zf;I-LUpq0-CG<&7q|#Dlm=dL8DcD z46(YmLsOi~p`~hV7meXV4M3`}dgXhH(h?7~0-B+w9;*1Wg-e+&OK|2Hj6Nq_|Y zjDU8VVY9|d#ohY$dRE^>)z$?L_2URHKLJSWDqg_du%B!J&7q|#Dlq;CI0gn1_$q-1 D?w=C8 literal 0 HcmV?d00001 diff --git a/package.json b/package.json index a0804b7..418f92c 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "build": "rm -rf ./dist && tsc", "dev": "rm -rf ./dist && tsc", "test": "NODE_ENV=dev jest --passWithNoTests", - "docs": "yarn build && typedoc --out docs" + "docs": "yarn build && typedoc --options typedoc.json --out docs" }, "engines": { "node": ">=16" diff --git a/src/ainize.ts b/src/ainize.ts index 1570f84..f9977d1 100644 --- a/src/ainize.ts +++ b/src/ainize.ts @@ -12,10 +12,10 @@ import { Account } from "@ainblockchain/ain-util"; export default class Ainize { private cache: NodeCache; private handler: Handler = Handler.getInstance(); - ain: AinModule = AinModule.getInstance(); + private ain: AinModule = AinModule.getInstance(); middleware: Middleware; internal: Internal; - appController: AppController = AppController.getInstance(); + private appController: AppController = AppController.getInstance(); constructor(chainId: 1 | 0) { this.ain.initAin(chainId); diff --git a/typedoc.json b/typedoc.json index 56b39ed..a62fba2 100644 --- a/typedoc.json +++ b/typedoc.json @@ -1,3 +1,16 @@ { - "entryPoints": ["./src/ainize.ts", "./src/model.ts"] -} + "out": "./docs/dist/api/", + "includes": "./src", + "exclude": [ + "**/src/controllers/**/*", + "**/src/handlers/**/*", + "**/src/middlewares/**/*", + "**/src/ain.ts", + "**/src/internal.ts", + "**/src/utils/**/*", + "**/src/constants.ts", + ], + + "excludeExternals": true, + "excludePrivate": true +} \ No newline at end of file