Felix Zedén Yverås
Felix Zedén Yverås
I think this affects usage with `lint-staged --cwd` as well.
@ajcvickers I originally used the template provided by AutoMapper but have now updated the gist to be a completely self-contained EF Core project. The database backend has also been updated...
I've since run into this issue a few more times, not only in poorly written async code, and it typically causes ugly workarounds as I do not understand the root...
Further details from ongoing debugging session: This seems to be triggered by a subtle interaction between two middlewares. I have middleware like this (still working on that minimal reproduction example):...
There is indeed some difference when comparing the return value of `table.mutate` to `await table.mutate`. ```typescript mutate: (req) => { const returnVal = table.mutate(req) return returnVal; }, ``` ![Screenshot from...
Reproduction code achieved: ```typescript import Dexie, { DBCore, DBCoreMutateRequest, DBCoreMutateResponse, DBCoreTable, Table, } from "dexie"; import { IDBKeyRange, indexedDB } from "fake-indexeddb"; // Configure IndexedDB mock Dexie.dependencies.indexedDB = indexedDB; Dexie.dependencies.IDBKeyRange...
I wonder if the typescript types can be modified in some way to allow detection of mistakes like this - e.g. via https://typescript-eslint.io/rules/await-thenable/ :thinking:
For reference (and I find this a bit scary :sweat_smile: ) ```typescript async (req) => await table.mutate(req) // does NOT work async (req) => table.mutate(req) // OK (req) => table.mutate(req)...
@dfahlander I assume it will take some time before the requested documentation is in place; would it be possible for you to provide some general pointers/advice in the meantime? I...
I'm not sure I like "ignore every line that contains a link" - there can be cases like: ``` I have a short link https://bit.ly/abc but this trailing text now...