Skip to content

Commit

Permalink
Revert "Update EverythingButNull to use less brittle type definition "
Browse files Browse the repository at this point in the history
This reverts commit 7b176aa.
  • Loading branch information
legobeat committed Oct 11, 2023
1 parent 90c23d6 commit 199f1de
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/json-rpc-provider-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,10 @@ type SendAsyncCallback<Result extends Json> = (

// What it says on the tin. We omit `null`, as that value is used for a
// successful response to indicate a lack of an error.
type EverythingButNull = NonNullable<unknown> | undefined;
type EverythingButNull =
| string
| number
| boolean
| object
| symbol
| undefined;

0 comments on commit 199f1de

Please sign in to comment.