Skip to content

Conversation

@738
Copy link
Contributor

@738 738 commented Feb 19, 2020

related: #3237

config:
  scalars:
    DateTime: Date
    JSON: { [key: string]: any }

This config file makes TS type definition file like this.

export type Scalars = {
  ID: string;
  String: string;
  Boolean: boolean;
  Int: number;
  Float: number;
  JSON: {"[ key: string ]":"any"};
};

So it should be changed into this code.

config:
  scalars:
    DateTime: Date
    JSON: "{ [key: string]: any }"
export type Scalars = {
  ID: string;
  String: string;
  Boolean: boolean;
  Int: number;
  Float: number;
  JSON: { [key: string]: any };
};

@738 738 requested a review from dotansimha February 19, 2020 10:55
@dotansimha
Copy link
Owner

Thank you @738 !

@dotansimha dotansimha merged commit 1c9fbc5 into dotansimha:master Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants