Skip to content

Commit

Permalink
js: impl Deref for JsWebLN
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Jan 20, 2024
1 parent 249bcf0 commit cc5462e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions webln-js/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ pub struct JsWebLN {
inner: WebLN,
}

impl Deref for JsWebLN {
type Target = WebLN;

fn deref(&self) -> &Self::Target {
&self.inner
}
}

#[wasm_bindgen(js_class = WebLN)]
impl JsWebLN {
/// Compose new WebLN instance
Expand Down

0 comments on commit cc5462e

Please sign in to comment.