Skip to content

type-fest and json-patch are declared as dev dependencies but are used in typings of public API #2569

@blaugold

Description

@blaugold

This causes users to encounter errors like these when checking their own code with tsc:

node_modules/contentful-management/dist/typings/plain/entities/concept.d.ts:3:30 - error TS2307: Cannot find module 'json-patch' or its corresponding type declarations.

3 import type { OpPatch } from 'json-patch';
                               ~~~~~~~~~~~~

node_modules/contentful-management/dist/typings/plain/entities/concept.d.ts:4:34 - error TS2307: Cannot find module 'type-fest' or its corresponding type declarations.

4 import type { SetOptional } from 'type-fest';
                                   ~~~~~~~~~~~

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