(result: D1Result | undefined)
| 70 | * being about rows rather than about array bounds. |
| 71 | */ |
| 72 | const rowsOf = <T>(result: D1Result | undefined): T[] => (result?.results ?? []) as unknown as T[]; |
| 73 | const firstOf = <T>(result: D1Result | undefined): T | undefined => rowsOf<T>(result)[0]; |
| 74 | |
| 75 | // --------------------------------------------------------------------------- |
no outgoing calls
no test coverage detected