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
It seems recently every time I modify my schema and run yarn gen-schema-types the resulting schema.d.ts file contains a couple tslint errors "Statements are not allowed in ambient contexts." due to extra semicolons. It is easy enough to manually fix by hand.
Does this happen to you? Any idea how to fix?
The text was updated successfully, but these errors were encountered:
Sorry I misspoke.. It appears to be a tsc error and not a tslint error. It happens consistently, but I find that prettier will automatically fix the file if I just drop my cursor in anyway and hit save. Not a big deal, just a small annoyance.
I haven't come across that, but you can run prettier programmatically. You could create a script that generates the types and then runs prettier on the file
It seems recently every time I modify my schema and run
yarn gen-schema-types
the resulting schema.d.ts file contains a couple tslint errors "Statements are not allowed in ambient contexts." due to extra semicolons. It is easy enough to manually fix by hand.Does this happen to you? Any idea how to fix?
The text was updated successfully, but these errors were encountered: