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

Create types for Options #210

Open
gandlafbtc opened this issue Nov 17, 2024 · 0 comments
Open

Create types for Options #210

gandlafbtc opened this issue Nov 17, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@gandlafbtc
Copy link
Collaborator

Functions on CashuWallet can take optional parameters. The list of optional parameters has grown over time, and it would be nice to create types for each of the Options.

eg.:

type SendOptions = {
			outputAmounts?: OutputAmounts;
			proofsWeHave?: Array<Proof>;
			counter?: number;
			pubkey?: string;
			privkey?: string;
			keysetId?: string;
			offline?: boolean;
			includeFees?: boolean;
			includeDleq?: boolean;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant