Any reason `meta` is of type object in prisma clie...
# prisma-client
d
Any reason
meta
is of type object in prisma client? Seems like
Record<string, unknown>
would be more appropriate. Personally I'm trying to access
error.meta.target
but of course TypeScript isn't happy about that because
object
is supposed to be equivalent to
{}
and thus even with optional chaining this is still invalid. So far seems like my only options are to PR and ts-ignore/coerce to any, but this is really not ideal... and I wanna make sure this is a mistake before I PR.
Copy code
export declare class PrismaClientKnownRequestError extends Error {
    code: string;
    meta?: object;
    clientVersion: string;
    constructor(message: string, code: string, clientVersion: string, meta?: any);
    get [Symbol.toStringTag](): string;
}