phillipdupuis/Pydantic to Typescript

Convert pydantic models into typescript definitions and ensure that your type definitions are in sync.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
python-modulename or filepath of the root python module. Typescript interfaces will be generated for all of the pydantic models contained within this module and its discoverable submodules. yes
ts-filepath to the file where the resulting typescript definitions will be saved. Example: './frontend/apiTypes.ts'. yes
exclude-modelscomma-separated list of the names of any pydantic models which should be omitted from the resulting typescript definitions. no""
fail-on-mismatchBoolean flag indicating if type definition mismatches should cause this action to fail. notrue
GITHUB_TOKENValue for secrets.GITHUB_TOKEN, necessary for pull requests to be automatically opened. no
namedescription
mismatchIf true, the current typescript definitions in 'inputs.ts-file' are different from the ones which were automatically generated from the pydantic models.