typeconv icon indicating copy to clipboard operation
typeconv copied to clipboard

Convert between JSON Schema, TypeScript, GraphQL, Open API and SureType

Results 33 typeconv issues
Sort by recently updated
recently updated
newest added

Given the following typescript file: ```ts interface A { a: string; } interface B { b: string; } export type C = A & B; ``` typeconv produces the following...

`input` types in GraphQL are not getting converted. Example: ```gql ##### type.graphql ##### type Foo { bar: String! } ##### input.graphql ##### input FooInput { bar: String! } ``` ```sh...

I'm using typeconv to convert some OpenAPI schemas into TypeScript interfaces. Generally working great, but I noticed one thing. When I start with the below OpenAPI spec: ```js { components:...

I would like to serve multiple versions of an api from a single web service. I also don't want to write OpenApi schemas. I want to write TypeScript, then I...

There's already `-O -`. typeconv could take `-` as input, too. (It would probably imply writing to stdout as well, since filename can't be determined automatically) ### Use case We...

Consider this schema: ```json { "title": "RDAP schema", "definitions": { "RdapEvent": { "title": "RdapEvent", "description": "This data structure represents events that have occurred on an instance of\nan object class.", "type":...

Whenever you are transforming a TypeScript file to an OpenApi specification file, if you declare a type that leverages some other type that you import from a different file, the...

Hi, It seems there is no namespace support for typeconv Example, this file sample.ts output nothing ` export namespace ModelVersion { export interface Version { version: string; codename: string; id:...

It would be nice if the plugin would parse Typescript built in types such as: Partial, Pick, Omit etc. It would make it possible to parse inferred types for example:...

Using: ``` typeconv 1.7.0 node v17.4.0 ``` input.ts ```ts export type T = number | string; ``` And on the command line: ``` npx typeconv -f ts -t st -o...