Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiac committed Feb 24, 2024
1 parent b2f219c commit 8a988f1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lnd_methods/peers/add_advertised_feature.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import {
AuthenticatedLightningArgs,
AuthenticatedLightningMethod,
} from '../../typescript/shared';

export type AddAdvertisedFeature = AuthenticatedLightningArgs<{
/** BOLT 09 Feature Bit Number */
feature: number;
}>;

/**
* Add an advertised feature to the graph node announcement
*
* Note: this method is not supported in LND versions 0.14.5 and below
*
* Requires LND built with `peersrpc` build tag
*
* Requires `peers:write` permissions
*/
export const addAdvertisedFeature: AuthenticatedLightningMethod<AddAdvertisedFeature>;
1 change: 1 addition & 0 deletions lnd_methods/peers/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './add_advertised_feature';
export * from './add_external_socket';
export * from './add_peer';
export * from './get_peers';
Expand Down

0 comments on commit 8a988f1

Please sign in to comment.