Skip to content

don't generate invalid typescript #253

Closed

Description

@stefanprobst

contentlayer generates export type * from './types' here which, surprisingly, is not valid typescript.

TS playground says "Only named exports may use 'export type'."

Activity

  1. wrthwhl commented on Jul 4, 2022

    @wrthwhl

    Is there a good way to prevent jest from tripping over this in the meantime?

  2. added this to the 0.2.6 milestone on Jul 5, 2022
  3. schickling commented on Jul 5, 2022

    @schickling
    Collaborator

    Is there a good way to prevent jest from tripping over this in the meantime?

    I'll try to fix this as part of the next release. Would you please provide a link to a repo that I can use for a reproduction? @wrthwhl

  4. added a commit that references this issue on Jul 5, 2022
  5. schickling commented on Jul 8, 2022

    @schickling
    Collaborator

    This should be addressed with the 0.2.6 release. 🎉

  6. wrthwhl commented on Jul 23, 2022

    @wrthwhl

    @schickling Thanks for the fix. And sorry for not responding to your request - I was taking a break.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions