Skip to content

Commit f28fbdb

Browse files
authored
Merge pull request #26 from nash-io/docs2
Doc update: some typedoc flags lead to a much cleaner output
2 parents eadecdd + b4312b5 commit f28fbdb

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"version": "standard-version",
3737
"reset": "git clean -dfx && git reset --hard && yarn",
3838
"clean": "rm -rf build test",
39-
"doc": "typedoc --ignoreCompilerErrors --includeVersion --out docs src",
39+
"doc": "typedoc --ignoreCompilerErrors --includeVersion --excludeExternals --excludeNotExported --excludePrivate --excludeProtected --inputFiles src/client/client.ts --mode file --out docs",
4040
"all": "yarn reset && yarn test && yarn cov:check",
4141
"prepare-release": "yarn all && yarn version",
4242
"preinstall": "node preinstall.js",

src/client/client.ts

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -264,24 +264,28 @@ import {
264264
} from './environments'
265265
const WebSocket = require('websocket').w3cwebsocket
266266

267+
/** @internal */
267268
const BLOCKCHAIN_TO_BIP44 = {
268269
[Blockchain.ETH]: BIP44.ETH,
269270
[Blockchain.BTC]: BIP44.BTC,
270271
[Blockchain.NEO]: BIP44.NEO
271272
}
272273

274+
/** @internal */
273275
const ORDERS_REMAINING_TO_AUTOSYNC_AT = 20
276+
/** @internal */
274277
const NEP5_OLD_ASSETS = ['nos', 'phx', 'guard', 'lx', 'ava']
278+
279+
/** @internal */
275280
export const MISSING_NONCES = 'missing_asset_nonces'
281+
/** @internal */
276282
export const MAX_ORDERS_REACHED = 'Maximal number of orders have been reached'
283+
/** @internal */
277284
export const MAX_SIGN_STATE_RECURSION = 5
278285

279286
export class Client {
280-
public perfClient: PerfClient
281287
private connection: NashSocketEvents
282288
private mode: ClientMode = ClientMode.NONE
283-
public ethVaultContract: Contract
284-
public apiKey: APIKey
285289
private maxEthCostPrTransaction: BigNumber
286290
private opts: EnvironmentConfig
287291
private clientOpts: ClientOptions
@@ -309,15 +313,26 @@ export class Client {
309313
private gql: GQL
310314
private web3: Web3
311315
private authorization: string
312-
public marketData: { [key: string]: Market }
313-
public nashProtocolMarketData: ReturnType<typeof mapMarketsForNashProtocol>
314316
private walletIndices: { [key: string]: number }
315-
public assetData: { [key: string]: AssetData }
316317

317318
private tradedAssets: string[] = []
318319
private assetNonces: { [key: string]: number[] }
319320
private currentOrderNonce: number
320321
private signStateInProgress: boolean
322+
323+
/** @internal */
324+
public perfClient: PerfClient
325+
/** @internal */
326+
public apiKey: APIKey
327+
/** @internal */
328+
public ethVaultContract: Contract
329+
/** @internal */
330+
public marketData: { [key: string]: Market }
331+
/** @internal */
332+
public nashProtocolMarketData: ReturnType<typeof mapMarketsForNashProtocol>
333+
/** @internal */
334+
public assetData: { [key: string]: AssetData }
335+
321336
/**
322337
* Create a new instance of [[Client]]
323338
*

0 commit comments

Comments
 (0)