Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Every version after 10.15.1 breaks EntryCollection type #2352

Open
CalebJamesStevens opened this issue Oct 10, 2024 · 0 comments
Open

Every version after 10.15.1 breaks EntryCollection type #2352

CalebJamesStevens opened this issue Oct 10, 2024 · 0 comments

Comments

@CalebJamesStevens
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant