You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an autogenerated type (by graphql codegen) like this:
/** Specifies the fields required to create a new customer. */exporttypeCustomerCreateInput={/** The customer’s first name. */readonlyfirstName?: Maybe<Scalars['String']>/** The customer’s last name. */readonlylastName?: Maybe<Scalars['String']>/** The customer’s email. */readonlyemail: Scalars['String']/** * A unique phone number for the customer. * * Formatted using E.164 standard. For example, _+16135551111_. */readonlyphone?: Maybe<Scalars['String']>/** The login password used by the customer. */readonlypassword: Scalars['String']/** Indicates whether the customer has consented to be sent marketing material via email. */readonlyacceptsMarketing?: Maybe<Scalars['Boolean']>}
./models/shopify.ts
MacroError: <rootDir>/models/shopify.ts: Unexpected error because TSIndexedAccessType was not expected. Please report this to the developer.
Let me know if you need more information, and thanks for this library!
The text was updated successfully, but these errors were encountered:
What is Scalars? Is it a type in the same file? Can you post the Scalars type?
Sure, here it is:
exporttypeScalars={ID: string;String: string;Boolean: boolean;Int: number;Float: number;/** An ISO-8601 encoded UTC date time string. Example value: `"2019-07-03T20:47:55Z"`. */DateTime: any;/** A signed decimal number, which supports arbitrary precision and is serialized as a string. Example value: `"29.99"`. */Decimal: any;/** A string containing HTML code. Example value: `"<p>Grey cotton knit sweater.</p>"`. */HTML: any;/** A monetary value string. Example value: `"100.57"`. */Money: any;/** * An RFC 3986 and RFC 3987 compliant URI string. * * Example value: `"https://johns-apparel.myshopify.com"`. * */URL: any;};
I have an autogenerated type (by graphql codegen) like this:
Then in the same file I add:
And my app throws an error like this:
Let me know if you need more information, and thanks for this library!
The text was updated successfully, but these errors were encountered: