(result: D1Result | undefined)
| 58 | * being about rows rather than about array bounds. |
| 59 | */ |
| 60 | const rowsOf = <T>(result: D1Result | undefined): T[] => (result?.results ?? []) as unknown as T[]; |
| 61 | const firstOf = <T>(result: D1Result | undefined): T | undefined => rowsOf<T>(result)[0]; |
| 62 | |
| 63 | // --------------------------------------------------------------------------- |
no outgoing calls
no test coverage detected