Repository navigation
feat(docling-core): update types for docling-core v2.100.0 - #115
Merged
Merged
Conversation
kdinkla
approved these changes
Oct 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-corepackage to align with the Pythondocling-corelibrary at tag v2.100.0. All changes are limited todocling-core/src/types/models.ts; no changes were required totyping.ts,index.ts,or the test files beyond what the existing 80 tests already cover.
Summary of changes
models.ts
BasePictureData.kind— changed fromkind?: string(optional) tokind: string(required) to match Python's
BaseAnnotation.kind: strwhich carries no default and istherefore always present on every annotation object.
Source
BaseAnnotationtype alias — reordered so the alias (export type BaseAnnotation = BasePictureData) now carries a@deprecatedJSDoc tag and appears after theBasePictureDatadeclaration, matching Python's canonical ordering whereBasePictureData = BaseAnnotationis a re-export alias.Source
PictureClassificationData.kind— changed fromkind?: 'classification'tokind: 'classification'(required literal) to match the Python class'skind: Literal["classification"] = "classification".Source
PictureDescriptionData.kind— changed fromkind?: 'description'tokind: 'description'(required literal).Source
DescriptionAnnotationtype alias — moved afterPictureDescriptionDataand marked@deprecatedto match Python's re-export pattern(
PictureDescriptionData = DescriptionAnnotation).Source
PictureMoleculeData.kind— changed fromkind?: 'molecule_data'tokind: 'molecule_data'(required literal).Source
PictureMiscData.kind— changed fromkind?: 'misc'tokind: 'misc'(requiredliteral).
Source
MiscAnnotationtype alias — moved afterPictureMiscDataand marked@deprecatedto match Python's re-export pattern (
PictureMiscData = MiscAnnotation).Source
PictureChartData.kind— added requiredkind: stringfield. In Python,PictureChartDataextendsBaseAnnotationwhich mandateskind: str; without a literalassignment at this level the field remains an open
str.Source
PictureTabularChartData.kind— changed fromkind?: 'tabular_chart_data'tokind: 'tabular_chart_data'(required literal).Source
PictureLineChartData.kind— changed fromkind?: 'line_chart_data'tokind: 'line_chart_data'(required literal).Source
PictureBarChartData.kind— changed fromkind?: 'bar_chart_data'tokind: 'bar_chart_data'(required literal).Source
PictureStackedBarChartData.kind— changed fromkind?: 'stacked_bar_chart_data'to
kind: 'stacked_bar_chart_data'(required literal).Source
PicturePieChartData.kind— changed fromkind?: 'pie_chart_data'tokind: 'pie_chart_data'(required literal).Source
PictureScatterChartData.kind— changed fromkind?: 'scatter_chart_data'tokind: 'scatter_chart_data'(required literal).Source
GraphData.cells— changed fromcells?: GraphCell[](optional) tocells: GraphCell[](required) to match Python'scells: list[GraphCell] = [].Source
GraphData.links— changed fromlinks?: GraphLink[](optional) tolinks: GraphLink[](required) to match Python'slinks: list[GraphLink] = [].Source
Files changed
docling-core/src/types/models.tsBasePictureData.kindrequired; all chart/annotationkindfields required;GraphData.cellsandGraphData.linksrequired; alias ordering and@deprecatedtags updatedValidation
All checks pass (
npm run check): format, lint, typecheck, 80 tests, build, publint, attw.