Skip to content

Convert flow types to TS#2828

Closed
saihaj wants to merge 65 commits intographql:mainfrom
saihaj:migrate-to-ts
Closed

Convert flow types to TS#2828
saihaj wants to merge 65 commits intographql:mainfrom
saihaj:migrate-to-ts

Conversation

@saihaj
Copy link
Copy Markdown
Member

@saihaj saihaj commented Oct 27, 2020

Summary

Convert all the .js to .ts and fix all syntax related issues that exist because of Flow and TypeScript.

Action items Based on #2828 (comment)
For @IvanGoncharov

For @saihaj

  • Compare and remove .d.ts
  • Convert flow types to TS #2828 (comment)
  • Remove Flow infrastructure, even integration test (remove in one commit and split if requested)
  • Convert type to interfaces
  • Enable as much as possible ESLint rules

Fix no redeclare src/polyfills/objectValues.ts (these will be removed so no need)

@joostheijkoop
Copy link
Copy Markdown

Hey! I was asked to check in here. You are doing some serious transformations. Is there any way I can help out? ;)

Copy link
Copy Markdown

@0558436961 0558436961 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

يتم اختراق حساب

Comment thread src/jsutils/isCollection.ts Outdated
@saihaj saihaj force-pushed the migrate-to-ts branch 2 times, most recently from 0252608 to e45a056 Compare November 5, 2020 18:13
@saihaj saihaj requested a review from IvanGoncharov November 5, 2020 18:13
@saihaj saihaj force-pushed the migrate-to-ts branch 2 times, most recently from caa8334 to 464cbf3 Compare November 10, 2020 02:01
Comment thread src/language/visitor.ts Outdated
@saihaj saihaj force-pushed the migrate-to-ts branch 2 times, most recently from 23a8baa to 79da01a Compare November 19, 2020 23:20
@IvanGoncharov IvanGoncharov mentioned this pull request Nov 25, 2020
17 tasks
@saihaj saihaj marked this pull request as ready for review December 2, 2020 18:08
@IvanGoncharov
Copy link
Copy Markdown
Member

@saihaj Can you please squash these two comments:
f47c55f
c5ace4f
Just use git rebase -i and move later commit earlier and squash them.
Please ping me if you need help with it.

@saihaj saihaj force-pushed the migrate-to-ts branch 2 times, most recently from 50a97b9 to bb270c2 Compare December 8, 2020 17:15
@saihaj
Copy link
Copy Markdown
Member Author

saihaj commented Dec 8, 2020

@IvanGoncharov rebased this with 16.x.x. and squashed those commits

Comment thread src/language/predicates.ts Outdated
Comment thread src/utilities/getIntrospectionQuery.ts Outdated
Comment thread src/type/definition.ts Outdated
@@ -1 +1 @@
export type PromiseOrValue<+T> = Promise<T> | T;
export type PromiseOrValue<T> = Promise<T> | T;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to myself: I need to check this commit.

Comment thread tsconfig.json
Comment thread src/error/GraphQLError.ts
@saihaj saihaj force-pushed the migrate-to-ts branch 3 times, most recently from 740ad83 to 446298c Compare January 9, 2021 02:37
saihaj and others added 25 commits April 14, 2021 22:14
Co-Authored-By: Kamil Kisiela <[email protected]>
Co-Authored-By: Kamil Kisiela <[email protected]>
@IvanGoncharov
Copy link
Copy Markdown
Member

@saihaj That was a long journey thanks a lot for your help 👍

@pspeter3
Copy link
Copy Markdown

Congrats! When will this be released?

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.

5 participants