File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import {
2222} from './codecs' ;
2323import { LndSignerClient } from './lndSignerClient' ;
2424import { ApiResponseError } from '../errors' ;
25+ import { ExpressApiRouteRequest } from '../typedRoutes/api' ;
2526
2627type 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 */
190191export 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 ) ) {
Original file line number Diff line number Diff 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
1616export const LightningStateResponse200 = t . type ( {
1717 state : WalletState ,
You can’t perform that action at this time.
0 commit comments