Skip to content

Bug: @eslint/object-schema missing some type exports #350

@Pixel998

Description

@Pixel998

Which packages are affected?

  • @eslint/compat
  • @eslint/config-array
  • @eslint/config-helpers
  • @eslint/core
  • @eslint/mcp
  • @eslint/migrate-config
  • @eslint/object-schema
  • @eslint/plugin-kit

Environment

Node version: v24.12.0
npm version: v11.6.2
ESLint version: v9.39.2
Operating System:

What did you do?

Tried to import various types:

import type {
  BuiltInMergeStrategy,
  BuiltInValidationStrategy,
  ObjectDefinition,
  PropertyDefinition,
} from "@eslint/object-schema";

What did you expect to happen?

All four types (BuiltInMergeStrategy, BuiltInValidationStrategy, ObjectDefinition, PropertyDefinition) should be exported from the main package and importable.

These types are defined in the package's types.ts file and should be part of the public API.

What actually happened?

Inconsistent behavior:

  • ObjectDefinition and PropertyDefinition types import successfully
  • BuiltInMergeStrategy and BuiltInValidationStrategy types cause TypeScript errors:
'"@eslint/object-schema"' has no exported member 'BuiltInMergeStrategy'.
'"@eslint/object-schema"' has no exported member 'BuiltInValidationStrategy'.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/typescript-node-cvmp1yvy

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

No response

Metadata

Metadata

Assignees

Labels

acceptedbugSomething isn't workingrepro:yesIssues with a reproducible example

Type

No type

Projects

Status

Ready to Implement

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions