hasura / ndc-typescript-deno

Instant Hasura Native Data Connector by writing Typescript Functions
https://hasura.io
Apache License 2.0
21 stars 3 forks source link

Use positional names for inline-types #60

Closed sordina closed 12 months ago

sordina commented 12 months ago

The recent v0.10 tag changed positional type names into qualified names matching the source names.

This failed to consider inline types, which (while possibly valid) would be better served as positional names.

This PR addresses this issue as seen with this program:

export function bar(x: {a: number, b: string}): string {
  return 'hello';
}

corresponding to this change in schema:

        "object_types": {
---        "{ a: number; b: string; }": {
+++        "bar_arguments_x": {

Tags

https://github.com/hasura/ndc-typescript-deno/tree/v0.12 https://deno.land/x/hasura_typescript_connector@v0.12