fix: improve send and confirm options ergonomics

This commit is contained in:
Justin Starry
2020-06-15 18:34:58 +08:00
committed by Justin Starry
parent dae8bc477b
commit 229ff05fe9
3 changed files with 12 additions and 12 deletions

6
web3.js/module.d.ts vendored
View File

@ -42,12 +42,12 @@ declare module '@solana/web3.js' {
};
export type SendOptions = {
skipPreflight: boolean;
skipPreflight?: boolean;
};
export type ConfirmOptions = {
confirmations: number;
skipPreflight: boolean;
confirmations?: number;
skipPreflight?: boolean;
};
export type RpcResponseAndContext<T> = {