Skip to content

Types for extended schemas with extendOptions #503

@kolyasya

Description

@kolyasya

I'm trying to add a description field which will be used to generate docs.

Image Image

When creating a schema I get:

Object literal may only specify known properties, and 'description' does not exist in type 'RegExp | ObjectConstructor | SimpleSchema | StandardSchemaKeyDefinition | SchemaKeyDefinitionWithOneType | ... 8 more ... | SupportedTypes[]'.ts(2353)

What is the way to fix such errors and make TS happy about unknown fields?

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