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

Commit b6a5d1a

Browse files
authored
fix: Fix return type of D1PreparedStatement.all (#285)
1 parent 52267c0 commit b6a5d1a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/nervous-queens-agree.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cloudflare/workers-types": patch
3+
---
4+
5+
Fix return type of D1PreparedStatement.all

overrides/d1.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ declare abstract class D1PreparedStatement {
1717
bind(...values: any[]): D1PreparedStatement;
1818
first<T = unknown>(colName?: string): Promise<T>;
1919
run<T = unknown>(): Promise<D1Result<T>>;
20-
all<T = unknown>(): Promise<D1Result<T[]>>;
20+
all<T = unknown>(): Promise<D1Result<T>>;
2121
raw<T = unknown>(): Promise<T[]>;
2222
}

0 commit comments

Comments
 (0)