Directus Extension Generate Types screenshot

Directus Extension Generate Types

Author Avatar Theme by Maltejur
Updated: 1 Sep 2024
248 Stars

Create types for your directus project in your favourite language.

Categories

Overview:

This product analysis will examine a tool that supports TypeScript, Python Type Hints, and the OpenAPI Specification. It provides the ability to generate types for different languages. The tool can be installed by downloading the latest index.js file from the GitHub releases page and placing it into the appropriate directory in the project. The Generate Types module needs to be enabled in the Project Settings of the directus project. The tool welcomes contributions and feedback from users.

Features:

  • TypeScript support: The tool supports TypeScript, allowing users to generate types for their TypeScript projects.
  • Python Type Hints: Python developers can utilize the tool to generate type hints for their Python projects.
  • OpenAPI Specification: The tool also supports the OpenAPI Specification, enabling users to generate types based on the specification.
  • More language support: The tool promises to support more languages in the future, expanding its range of type generation abilities.

Installation:

To install the tool, follow these steps:

  1. Download the latest index.js file from the GitHub releases page.
  2. Place the downloaded index.js file into the <root of your project>/extensions/modules/generate-types/index.js directory.
  3. Go to the Project Settings of your directus project (/admin/settings/project).
  4. Enable the Generate Types module located at the bottom of the page.

Summary:

The tool offers support for TypeScript, Python Type Hints, and the OpenAPI Specification, allowing users to generate types for their projects. It can be installed by downloading the index.js file and enabling the Generate Types module in the directus project settings. The tool also welcomes contributions and feedback from users regarding additional language support or improvements in the type generation process.