Socket
Socket
Sign inDemoInstall

json-schema-to-flow-type

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-to-flow-type


Version published
Weekly downloads
304
increased by28.27%
Maintainers
1
Weekly downloads
 
Created
Source

Convert JSON Schema to Flow Type Definitions;

npm dependences

APIs

type Context = {
  type: string, // type name for simple schema
  belongTo?: string, // parent type for schemas in definitions
  needExport?: boolean, // `export` type or not
}

convertSchema(schema: Schema, ctx: Context): string;

convert simple schema to flow type definition;

convertDefinitions(schema: Schema, ctx: Context): string;

convert schemas which in definitions to flow type definitions;

convertAll(schema: Schema, ctx: Context): string;

convert schemas base and its definitions;

FAQs

Package last updated on 17 Oct 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc