Skip to content

Commit 02537bd

Browse files
committed
refactor: removed inline import
TICKET: WP-5447
1 parent c678042 commit 02537bd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

modules/express/src/lightning/lightningSignerRoutes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
} from './codecs';
2323
import { LndSignerClient } from './lndSignerClient';
2424
import { ApiResponseError } from '../errors';
25+
import { ExpressApiRouteRequest } from '../typedRoutes/api';
2526

2627
type Decrypt = (params: { input: string; password: string }) => string;
2728

@@ -188,7 +189,7 @@ export async function handleCreateSignerMacaroon(req: express.Request): Promise<
188189
* Handle the request to get the state of a wallet from the signer.
189190
*/
190191
export async function handleGetLightningWalletState(
191-
req: import('../typedRoutes/api').ExpressApiRouteRequest<'express.lightning.getState', 'get'>
192+
req: ExpressApiRouteRequest<'express.lightning.getState', 'get'>
192193
): Promise<GetWalletStateResponse> {
193194
const { coin: coinName, walletId } = req.decoded;
194195
if (!isLightningCoinName(coinName)) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const LightningStateParams = {
1111
coin: t.string,
1212
/** The ID of the lightning self-custody wallet */
1313
walletId: t.string,
14-
};
14+
} as const;
1515

1616
export const LightningStateResponse200 = t.type({
1717
state: WalletState,

0 commit comments

Comments
 (0)