Skip to content

Better typeKey support in TypeScript, or drop support for it in TypeScript altogether #11482

@vkarpov15

Description

@vkarpov15

Re: #9927, #11241

The fact that type is optional in SchemaTypeOptions causes unpredictable behavior, because incorrect type definitions often end up as valid SchemaTypeOptions because of

[other: string]: any;
. Something to think about.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsThis issue is due to a mistake or omission in the mongoosejs.com documentationtypescriptTypes or Types-test related issue / Pull Request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions