diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..ca2b787 Binary files /dev/null and b/.DS_Store differ 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