Skip to content

feat(konsistent): support exact top-level TypeScript type constraints alternatively to JSON schema - #98

Merged
felixarntz merged 3 commits into
mainfrom
allow-type-and-const-type-verification-without-schema
Sep 2, 2026
Merged

feat(konsistent): support exact top-level TypeScript type constraints alternatively to JSON schema#98
felixarntz merged 3 commits into
mainfrom
allow-type-and-const-type-verification-without-schema

Conversation

@felixarntz

Copy link
Copy Markdown
Collaborator

Pull Request Description

Allows declaration and export predicates to verify complete TypeScript type expressions, alternatively to the already supported JSON Schema shapes.

Relevant technical choices

  • Adds a mutually exclusive type alternative to schema for declareTypes, exportTypes, declareConstants, and exportConstants.
  • Compares template-expanded type expressions directly against source annotations or type alias expressions without resolving semantic equivalence.
  • Keeps from, schema, and type mutually exclusive and removes unsupported from usage from exportConstants.
  • Updates generated schemas, documentation, unit coverage, and e2e fixtures.

Checklist

  • All commits are signed (PRs with unsigned commits cannot be merged)
  • Tests have been added / updated
  • A changeset has been added (run pnpm changeset in the project root if package files were modified)
  • I have reviewed this pull request (self-review)

@felixarntz
felixarntz merged commit 1f3717c into main Sep 2, 2026
8 checks passed
@felixarntz
felixarntz deleted the allow-type-and-const-type-verification-without-schema branch September 2, 2026 17:04
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