- I installed `@types/uuid` because typescript required it in a file - In `packages/db-sqlite/src/index.ts` I see four more errors in my IDE that don't appear when I run the typecheck in the CLI with `tsc --noEmit`. The same thing happened in https://github.com/payloadcms/payload/pull/11560. Also referencing https://github.com/payloadcms/payload/pull/11226#issuecomment-2713898801 for traceability.
12 lines
376 B
TypeScript
12 lines
376 B
TypeScript
import type { DeleteWhere, SQLiteAdapter } from './types.js'
|
|
|
|
export const deleteWhere: DeleteWhere = async function (
|
|
// Here 'this' is not a parameter. See:
|
|
// https://www.typescriptlang.org/docs/handbook/2/classes.html#this-parameters
|
|
this: SQLiteAdapter,
|
|
{ db, tableName, where },
|
|
) {
|
|
const table = this.tables[tableName]
|
|
await db.delete(table).where(where)
|
|
}
|