Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@devix-tecnologia/directus2ts

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devix-tecnologia/directus2ts

Create typescript types from any directus api

Source
npmnpm
Version
1.0.3
Version published
Maintainers
2
Created
Source

Directus2Ts

Create typescript types from any directus api. Forked from: https://github.com/elierotenberg/directus-typescript-gen

Installation

  yarn add @devix-tecnologia/directus2ts

Usage

yarn directus2ts --host <directus-host> --token <auth-token> --typeName <group-name> --outFile <output-file.d.ts> --simplified

The simplified option generates a smaller file without too much pollution. It is suitable for most uses.

Instancing the Directus SDK

import { Directus } from "@directus/sdk";
import { MyCollections } from "./my-collections.d.ts";

const directus = new Directus<MyCollections>();

FAQs

Package last updated on 16 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts