Skip to content

Missing types for plugin configuration #114

@jamesdanielgibbs

Description

@jamesdanielgibbs

This PR added native types which is much appreciated.

Sadly though, these types don't cover cases where specific functions need to be configured for the plugin. So the following results in Typescript compilation issues:

someSchema(mongooseAutoPopulate, { functions: ['findOne'] })

Screenshot 2023-05-24 at 21 00 50

Package versions

  • mongoose: 7.2.0
  • mongoose-autopopulate: 1.0.1
  • typescript: 5.0.4

Happy to throw a PR together so solve this issue - just want to find out if this is a me-only problem.

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