neondatabase / serverless

Connect to Neon PostgreSQL from serverless/worker/edge functions

Home Page:https://www.npmjs.com/package/@neondatabase/serverless

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NeonDbError does not have the new types in build

sabercoy opened this issue · comments

Steps to reproduce

install 0.9.3
look at index.d.ts and see NeonDbError

Expected result

to resemble

export class NeonDbError extends Error {
  name = 'NeonDbError' as const;

  severity: string | undefined;
  code: string | undefined;
  detail: string | undefined;
  hint: string | undefined;
  position: string | undefined;
  internalPosition: string | undefined;
  internalQuery: string | undefined;
  where: string | undefined;
  schema: string | undefined;
  table: string | undefined;
  column: string | undefined;
  dataType: string | undefined;
  constraint: string | undefined;
  file: string | undefined;
  line: string | undefined;
  routine: string | undefined;

  sourceError: Error | undefined;
}

Actual result

export class NeonDbError extends Error {
  name: 'NeonDbError';
  code: string | null;
  sourceError: Error | undefined;
}

Environment

Logs, links

Thanks: that's a very good point! Fix should land soon.