Skip to content

Commit 42f9eed

Browse files
committed
refactor: refactored jsdocs
TICKET: WP-5447
1 parent 9f073c6 commit 42f9eed

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

modules/express/src/typedRoutes/api/v2/lightningState.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,23 @@ import { WalletState } from '../../../lightning/codecs';
55

66
/**
77
* Path parameters for getting lightning node state
8-
* @property {string} coin - A lightning coin name (e.g., lnbtc or tlnbtc)
9-
* @property {string} walletId - The ID of the lightning self-custody wallet
108
*/
119
export const LightningStateParams = {
10+
/** A lightning coin name (e.g., lnbtc or tlnbtc) */
1211
coin: t.string,
12+
/** The ID of the lightning self-custody wallet */
1313
walletId: t.string,
1414
};
1515

1616
/**
17-
* Response
18-
* - 200: Returns the current Lightning wallet/node state('NON_EXISTING' | 'LOCKED' | 'UNLOCKED' | 'RPC_ACTIVE' | 'SERVER_ACTIVE' | 'WAITING_TO_START'.
19-
* - 400: BitGo Express error payload when the request is invalid (e.g., invalid coin or wallet not a self-custody lightning wallet).
20-
*
21-
* See platform spec: GET /api/v2/{coin}/wallet/{walletId}/state
17+
* Response for getting lightning node state
2218
*/
2319
export const LightningStateResponse = {
20+
/** Current Lightning wallet/node state('NON_EXISTING' | 'LOCKED' | 'UNLOCKED' | 'RPC_ACTIVE' | 'SERVER_ACTIVE' | 'WAITING_TO_START') */
2421
200: t.type({
2522
state: WalletState,
2623
}),
24+
/** BitGo Express error payload when the request is invalid (e.g., invalid coin or wallet not a self-custody lightning wallet). */
2725
400: BitgoExpressError,
2826
} as const;
2927

0 commit comments

Comments
 (0)