Skip to content

TS type of express(feathers()) is any #2120

Closed

Description

@SephReed

Screen Shot 2020-11-10 at 2 27 13 PM

Activity

  1. SephReed commented on Nov 10, 2020

    @SephReed
    Author

    "allowSyntheticDefaultImports": true, is required in tsconfig.json, otherwise some imports in the .d.ts files for @feathers/express end up being any, and that gets mixed with a type.

    Perhaps add "allowSyntheticDefaultImports": true, as a requirement to the getting started/installation page

  2. daffl commented on Nov 10, 2020

    @daffl
    Member

    For now, pass the application type as a generic or a type pointer as used in a generated application:

    const app: Application = express(feathers());
    // or
    const app = express<Application>(feathers());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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