Skip to content

Every version after 10.15.1 breaks EntryCollection type #2352

Description

Expected Behavior

The expectation here is that OurModelEntryCollection would be the type of an EntryCollection of OurModelEntrySkeleton.

import type {
  ChainModifiers,
  Entry,
  EntryCollection,
  EntryFieldTypes,
  EntrySkeletonType,
  LocaleCode,
} from 'contentful';

export type OurModelEntryCollection = EntryCollection<
  OurModelEntrySkeleton,
  'WITHOUT_UNRESOLVABLE_LINKS',
  'es'
>;

export type OurModelEntrySkeleton = {
  contentTypeId: 'ourModel';
  fields: {
    title: EntryFieldTypes.Symbol;
  };
};

Actual Behavior

OurModelEntryCollection type is any

Environment

  • Language Version: 18.20.3
  • Package Manager Version: 1.22.22 (yarn)
  • Operating System: MacBook Pro 22.6.0 Darwin Kernel Version 22.6.0: Thu Nov 2 07:43:57 PDT 2023; root:xnu-8796.141.3.701.17~6/RELEASE_ARM64_T6000 arm64
  • Package Version: 10.15.2 and up
  • Which API are you using?: Delivery

Activity

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