Skip to content

Conversation

JamisonHolt
Copy link

@JamisonHolt JamisonHolt commented Oct 8, 2025

Description

Description already discussed in my issue. The goal is to have a traceable, zod-compatible array declaration by allowing us to generate arrays with non-empty tuple type declarations. as const lets us use the arrays in zod enums, but will show the enum declaration as a raw, unnamed string union. This makes it tougher in large codebases to trace the origins of the parsed zod schemas.

Related #1243

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Screenshots/Sandbox (if appropriate/relevant):

image

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can
reproduce. Please also list any relevant details for your test configuration

  • packages/plugins/typescript/enum-array/tests/enum-array.spec.ts with asNonEmptyTuple

Checklist:

  • I have followed the
    CONTRIBUTING doc and the
    style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link

changeset-bot bot commented Oct 8, 2025

⚠️ No Changeset found

Latest commit: a6250f9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@JamisonHolt JamisonHolt marked this pull request as ready for review October 8, 2025 18:49
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

Successfully merging this pull request may close these issues.

1 participant