Skip to content

feat(docling-core): update types for docling-core v2.100.0 - #115

Merged
kdinkla merged 1 commit into
mainfrom
sync/docling-core-2.100.0
Oct 7, 2026
Merged

kdinkla merged 1 commit into
mainfrom
sync/docling-core-2.100.0

Conversation

@docling-ts-ops

@docling-ts-ops docling-ts-ops Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Automated Upstream Sync: docling-core v2.100.0

This pull request was generated automatically using IBM Bob CLI in GitHub Actions.# Release v2.100.0 — Sync TypeScript package with Python docling-core

This PR updates the TypeScript @docling/docling-core package to align with the Python
docling-core library at tag v2.100.0. All changes are limited to
docling-core/src/types/models.ts; no changes were required to typing.ts, index.ts,
or the test files beyond what the existing 80 tests already cover.


Summary of changes

models.ts

  • BasePictureData.kind — changed from kind?: string (optional) to kind: string
    (required) to match Python's BaseAnnotation.kind: str which carries no default and is
    therefore always present on every annotation object.
    Source

  • BaseAnnotation type alias — reordered so the alias (export type BaseAnnotation = BasePictureData) now carries a @deprecated JSDoc tag and appears after the
    BasePictureData declaration, matching Python's canonical ordering where
    BasePictureData = BaseAnnotation is a re-export alias.
    Source

  • PictureClassificationData.kind — changed from kind?: 'classification' to
    kind: 'classification' (required literal) to match the Python class's
    kind: Literal["classification"] = "classification".
    Source

  • PictureDescriptionData.kind — changed from kind?: 'description' to
    kind: 'description' (required literal).
    Source

  • DescriptionAnnotation type alias — moved after PictureDescriptionData and marked
    @deprecated to match Python's re-export pattern
    (PictureDescriptionData = DescriptionAnnotation).
    Source

  • PictureMoleculeData.kind — changed from kind?: 'molecule_data' to
    kind: 'molecule_data' (required literal).
    Source

  • PictureMiscData.kind — changed from kind?: 'misc' to kind: 'misc' (required
    literal).
    Source

  • MiscAnnotation type alias — moved after PictureMiscData and marked @deprecated
    to match Python's re-export pattern (PictureMiscData = MiscAnnotation).
    Source

  • PictureChartData.kind — added required kind: string field. In Python,
    PictureChartData extends BaseAnnotation which mandates kind: str; without a literal
    assignment at this level the field remains an open str.
    Source

  • PictureTabularChartData.kind — changed from kind?: 'tabular_chart_data' to
    kind: 'tabular_chart_data' (required literal).
    Source

  • PictureLineChartData.kind — changed from kind?: 'line_chart_data' to
    kind: 'line_chart_data' (required literal).
    Source

  • PictureBarChartData.kind — changed from kind?: 'bar_chart_data' to
    kind: 'bar_chart_data' (required literal).
    Source

  • PictureStackedBarChartData.kind — changed from kind?: 'stacked_bar_chart_data'
    to kind: 'stacked_bar_chart_data' (required literal).
    Source

  • PicturePieChartData.kind — changed from kind?: 'pie_chart_data' to
    kind: 'pie_chart_data' (required literal).
    Source

  • PictureScatterChartData.kind — changed from kind?: 'scatter_chart_data' to
    kind: 'scatter_chart_data' (required literal).
    Source

  • GraphData.cells — changed from cells?: GraphCell[] (optional) to
    cells: GraphCell[] (required) to match Python's cells: list[GraphCell] = [].
    Source

  • GraphData.links — changed from links?: GraphLink[] (optional) to
    links: GraphLink[] (required) to match Python's links: list[GraphLink] = [].
    Source


Files changed

File Changes
docling-core/src/types/models.ts BasePictureData.kind required; all chart/annotation kind fields required; GraphData.cells and GraphData.links required; alias ordering and @deprecated tags updated

Validation

All checks pass (npm run check): format, lint, typecheck, 80 tests, build, publint, attw.

Comment thread docling-core/src/types/models.ts
Comment thread docling-core/src/types/models.ts
Comment thread docling-core/src/types/models.ts
Comment thread docling-core/src/types/models.ts
Comment thread docling-core/src/types/models.ts
Comment thread docling-core/src/types/models.ts
Comment thread docling-core/src/types/models.ts
Comment thread docling-core/src/types/models.ts
Comment thread docling-core/src/types/models.ts
Comment thread docling-core/src/types/models.ts
Comment thread docling-core/src/types/models.ts
Comment thread docling-core/src/types/models.ts
Comment thread docling-core/src/types/models.ts
Comment thread docling-core/src/types/models.ts
Comment thread docling-core/src/types/models.ts
Comment thread docling-core/src/types/models.ts
Comment thread docling-core/src/types/models.ts
@kdinkla
kdinkla merged commit fc4c043 into main Oct 7, 2026
2 checks passed
@kdinkla
kdinkla deleted the sync/docling-core-2.100.0 branch October 7, 2026 06:31
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