Skip to content

Commit 33c6bd0

Browse files
authored
D1: hiding internal _send method (#266)
1 parent 6cac151 commit 33c6bd0

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

overrides/d1.d.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@ declare type D1Result<T = unknown> = {
55
duration: number;
66
error?: string;
77
};
8+
89
declare abstract class D1Database {
910
prepare(query: string): D1PreparedStatement;
1011
dump(): Promise<ArrayBuffer>;
1112
batch<T = unknown>(statements: D1PreparedStatement[]): Promise<D1Result<T>[]>;
1213
exec<T = unknown>(query: string): Promise<D1Result<T>>;
13-
_send<T = unknown>(
14-
endpoint: string,
15-
query: any,
16-
params: any[]
17-
): Promise<D1Result<T>[] | D1Result<T>>;
1814
}
15+
1916
declare abstract class D1PreparedStatement {
2017
bind(...values: any[]): D1PreparedStatement;
2118
first<T = unknown>(colName?: string): Promise<T>;

0 commit comments

Comments
 (0)