New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

schema2tsd

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

schema2tsd

Compile schema to ts define.

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

schema2tsd

编译 fengdie schema 为 TypeScript 类型定义文件。

Example

Object(跑马灯配置){
  interval(间隔时间): Number,
}

↓ ↓ ↓ ↓ ↓ ↓

/**
 * 跑马灯配置
 */
export interface ISchemaProps {
  /**
   * 间隔时间
   */
  interval?: number;
}

Usage

$ npm i schema2tsd -D
$ npx schema2tsd --output src/typing.d.ts
$ npx schema2tsd --output src/typing.d.ts --schema config.schema

Options

--output

指定输出文件,默认是 src/typing.d.ts

--schema

指定 schema 文件,默认是 config.schema

LICENSE

MIT

Keywords

schema

FAQs

Package last updated on 15 Oct 2020

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