Metadata-Version: 2.1
Name: django-ts-bridge
Version: 1.2.0
Summary: Management commands in Django that give defintions for Django models returned by DRF along with any model fields limited by choices
Home-page: https://github.com/ChickenF622/django-ts-bridge
Author: Mark McOsker
Author-email: mark.mcosker@627stomp.org
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Dist: asgiref (>=3.3.1)
Requires-Dist: Django (>=3.1.5)
Requires-Dist: djangorestframework (>=3.12.2)
Requires-Dist: pytz (>=2020.5)
Requires-Dist: sqlparse (>=0.4.1)

# Django TS Bridge

Creates a set of management commands that makes it easy to create TypeScript files that easy the usage of Django models within TypeScript

## Settings

- DJANGO_TS_BRIDGE_EXCLUDED_APPS - Array of apps that shouldn't be included in generation. Default: ['rest_framework', 'wagtail.api.v2']
- DJANGO_TS_BRIDGE_CHOICE_DEFINITION_IMPORT_PATH - The path used to import the generated TypeScript file of the choices available for all Django models. Default: 'ts/django/django-model-choices'
- DJANGO_TS_BRIDGE_CHOICE_DEFINITION_OUTPUT_PATH - The output path for the generated Typescript file of the choices available for all Django models. Default: 'src/ts/django/django-model-choices.ts'
- DJANGO_TS_BRIDGE_MODEL_DEFINITION_OUTPUT_PATH - The output path for the generated Typescript declaration file for all Django models. Default: 'src/ts/@types/django-models.d.ts'
- DJANGO_TS_BRIDGE_CHOICE_VAR_NAME - The name of the variable that will hold all Django model choices. Default: 'Choices'

