Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please add new types for NUT-15 #142

Open
KraXen72 opened this issue Jun 22, 2024 · 2 comments
Open

please add new types for NUT-15 #142

KraXen72 opened this issue Jun 22, 2024 · 2 comments

Comments

@KraXen72
Copy link

the library does not provide type definitions for NUT15.
please add them.
this is how i'm patching it for now.
feel free to use the code.

import { GetInfoResponse as _GetInfoResponse } from '@cashu/cashu-ts'
type NUT15Entry = { method: string, unit: string, mpp: boolean }
type GetInfoResponse = _GetInfoResponse & {
  nuts: {
    15: Array<NUT15Entry>
  }
}
@callebtc
Copy link
Contributor

Would you like to open a PR with this patch?

@KraXen72
Copy link
Author

sorry, i just realized, in minibits we are using our own fork of cashu-ts library. i'll first try to implement it there, so i can test it, and then if it works i can try to port it to here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants