Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
fix: Fix return type of D1PreparedStatement.all (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdnts authored Oct 6, 2022
1 parent 52267c0 commit b6a5d1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nervous-queens-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudflare/workers-types": patch
---

Fix return type of D1PreparedStatement.all
2 changes: 1 addition & 1 deletion overrides/d1.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ declare abstract class D1PreparedStatement {
bind(...values: any[]): D1PreparedStatement;
first<T = unknown>(colName?: string): Promise<T>;
run<T = unknown>(): Promise<D1Result<T>>;
all<T = unknown>(): Promise<D1Result<T[]>>;
all<T = unknown>(): Promise<D1Result<T>>;
raw<T = unknown>(): Promise<T[]>;
}

0 comments on commit b6a5d1a

Please sign in to comment.