Skip to content

Commit

Permalink
Use any as Result Value Type (#22)
Browse files Browse the repository at this point in the history
* use any as result value

* Update src/responseTypes.ts
  • Loading branch information
bh2smith authored May 18, 2023
1 parent f6fbc33 commit 5574763
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cowprotocol/ts-dune-client",
"version": "0.0.1",
"version": "0.0.2",
"author": "Ben Smith <[email protected]>",
"description": "Node Client for Dune Analytics' officially supported API.",
"repository": "[email protected]:cowprotocol/ts-dune-client.git",
Expand Down
2 changes: 1 addition & 1 deletion src/responseTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ interface CompleteStatusResponse extends BaseStatusResponse {
export type GetStatusResponse = IncompleteStatusResponse | CompleteStatusResponse;

export interface ExecutionResult {
rows: Record<string, string>[];
rows: Record<string, unknown>[];
metadata: ResultMetadata;
}

Expand Down
5 changes: 4 additions & 1 deletion tests/e2e/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ describe("DuneClient: Errors", () => {
});
it("returns Invalid request path (queryId too large)", async () => {
const client = new DuneClient(apiKey);
await expectAsyncThrow(client.execute(99999999999999999999999999), "Invalid request path");
await expectAsyncThrow(
client.execute(99999999999999999999999999),
"Invalid request path",
);
});
it("returns query not found error", async () => {
const client = new DuneClient(apiKey);
Expand Down

0 comments on commit 5574763

Please sign in to comment.