You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.
The docs also say that errors are thrown and never mention the error property. So I wonder if the error property can actually exist, and consequently if results is optional.
D1PreparedStatement.run() also has a results? property, even though the docs say that .run() returns no results (same goes for exec I think)
https://github.com/cloudflare/workers-types/blob/master/src/workers.json#L1712-L1721
It's return type is
Promise<D1Result<T[]>>
.I expect that
D1Result<T[]>.results
returnsT[][]
but actually it returnsT[]
.So, I think
D1PreparedStatement.all
's return type should bePromise<D1Result<T>>
.The text was updated successfully, but these errors were encountered: