Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

feathers-objection/types has no exported member 'ERROR' #93

@robbyphillips

Description

@robbyphillips

There is a small issue with the exported types. Doing a import { ERROR } from 'feathers-objection' throws a typescript error because the index.d.ts file doesn't include it. The symbol is still imported and everything works fine with a // @ts-ignore directive.

Edit:

I think we just need to change the declare const objection bit to something more like

declare const objection: {
  <T>(config?: Partial<ObjectionServiceOptions>): Service<T>
  ERROR: Symbol
}

https://www.typescriptlang.org/docs/handbook/interfaces.html#hybrid-types

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions