diff --git a/package.json b/package.json index 39b812ee..feace089 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,10 @@ "build:tsc": "tsc --sourceMap", "build:metadata": "./scripts/get-metadata.js > src/metadata.json", "clean": "rm -rf ./dist/ ./doc/ ./.nyc_output", - "lint": "eslint --ignore-path .gitignore --ext .ts,.tsx .", + "lint": "eslint --ignore-path .gitignore --ext .ts,.tsx . && npm run type-check", "lint:fix": "eslint --ignore-path .gitignore --ext .ts,.tsx . --fix", "format": "prettier --parser typescript --ignore-path .gitignore --write '**/*.{js,jsx,ts,tsx}'", + "type-check": "tsc --noEmit", "doc:json": "./scripts/typedoc.js", "run": "ts-node", "release": "release-it --non-interactive", diff --git a/src/balancer/OceanPool.ts b/src/balancer/OceanPool.ts index 68622432..6cb1fbf6 100644 --- a/src/balancer/OceanPool.ts +++ b/src/balancer/OceanPool.ts @@ -29,7 +29,7 @@ export class OceanPool extends Pool { * @param {String} token Data Token address * @param {String} amount Data Token amount * @param {String} weight Data Token weight - * @return {any} + * @return {String} */ public async createDTPool( account: string, @@ -38,7 +38,7 @@ export class OceanPool extends Pool { weight: string, fee: string, finalize = true - ): Promise { + ): Promise { if (this.oceanAddress == null) { console.error('oceanAddress is not defined') return null @@ -90,9 +90,9 @@ export class OceanPool extends Pool { * Get Ocean Token balance of a pool * @param {String} account * @param {String} poolAddress - * @return {any} + * @return {String} */ - public async getOceanReserve(account: string, poolAddress: string): Promise { + public async getOceanReserve(account: string, poolAddress: string): Promise { if (this.oceanAddress == null) { console.error('oceanAddress is not defined') return null @@ -104,9 +104,9 @@ export class OceanPool extends Pool { * Get Data Token balance of a pool * @param {String} account * @param {String} poolAddress - * @return {any} + * @return {String} */ - public async getDTReserve(account: string, poolAddress: string): Promise { + public async getDTReserve(account: string, poolAddress: string): Promise { await this.getDTAddress(account, poolAddress) return super.getReserve(account, poolAddress, this.dtAddress) }