typeshift
TypeShift provides a common schema library for converting between different type systems.
Motivation
TODO
Status
Early WIP Research
Packages
- typeshift - Main library exposing typeshift conversion and validation functionality.
- typeshift-cli - CLI for converting between different type system adaptors.
- typeshift-schema - Defines the common json schema format.
- typeshift-adaptor - Abstract interface for source and sink adaptors.
Bidirectional Adaptors
These adaptors support conversions as both source and sink.
This means that for each of these adaptors, you can convert from Source -> TypeShift
and from TypeShift -> Sink
.
- typeshift-adaptor-prop-types - TypeShift adaptor for React PropTypes.
- typeshift-adaptor-typescript - TypeShift adaptor for TypeScript.
- typeshift-adaptor-flow - TypeShift adaptor for Flow.
- typeshift-adaptor-graphql - TypeShift adaptor for GraphQL.
Sink Adaptors
These adaptors only support conversion from TypeShift -> Sink
.
- typeshift-adaptor-markdown - TypeShift adaptor for Markdown (sink).
- typeshift-adaptor-pojo - TypeShift adaptor for POJO (Java).
Source Adaptors
These adaptors only support conversion from Source -> TypeShift
.
TODO
Related
- json schema - Allows you to annotate and validate JSON documents.
- react-docgen - Extracts documentation info from React component files.
- apollo-cli - CLI for managing Apollo workflows.
- Swagger / OpenAPI
- jsonschema2pojo - Generate Java types from JSON Schema.
TODO: needs more background research.
License
MIT © Hydrate