Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(gatsby-core-utils): ci to TS #22047

Merged
merged 8 commits into from
Mar 9, 2020

Conversation

danielkov
Copy link
Contributor

Collection ticket for these tasks: #22041
☂ ticket: #21995

@danielkov danielkov requested a review from a team as a code owner March 8, 2020 00:05
@@ -1,13 +1,13 @@
const ciInfo = jest.genMockFromModule(`ci-info`)
const ciInfo: typeof import("ci-info") = jest.genMockFromModule(`ci-info`)
Copy link
Contributor

Choose a reason for hiding this comment

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

is this valid? typically import() are async. So this seems off. /shrug

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think you're referring to Webpack's import() function that does async import. In TypeScript you can pull in the export signature this way.

@blainekasten blainekasten changed the base branch from master to ts/gatsby-core-utils March 9, 2020 19:55
@blainekasten blainekasten merged commit 5dafd4f into gatsbyjs:ts/gatsby-core-utils Mar 9, 2020
blainekasten added a commit that referenced this pull request Mar 10, 2020
* chore(gatsby-core-utils): get-config-store to TS (#22051)

* chore(gatsby-core-utils): get-config-store to TS

* chore(gatsby-core-utils): change getConfigStore to named export

* chore(gatsby-core-utils): ci to TS (#22047)

* chore(gatsby-core-utils): package.json added type

* chore(gatsby-core-utils): mocks convert ci-info to TS

* chore(gatsby-core-utils): ci to TS

* chore(gatsby-core-utils): add @types/ci-info

* chore(gatsby-core-utils): re-install dependencies to fix order

* chore(gatsby-core-utils): cpu-core-count to TS (#22048)

* chore(gatsby-core-utils): create-content-digest to TS (#22049)

* chore(gatsby-core-utils): tests create-content-digest to TS

* chore(gatsby-core-utils): create-content-digest to TS

* chore(gatsby-core-utils): create-require-from-path to TS (#22050)

* chore(gatsby-core-utils): get-gatsby-version to TS (#22052)

* chore(gatsby-core-utils): index to TS (#22053)

* chore(gatsby-core-utils): index to TS

* chore(gatby-core-utils): changed getConfigStore to named export in #22051

* chore(gatsby-core-utils): path to ts (#22054)

* chore(gatsby-core-utils): tests path to TS

* chore(gatsby-core-utils): path to ts

* chore(gatsby-core-utils): url to TS (#22056)

* chore(gatsby-core-utils): tests url to TS

* chore(gatsby-core-utils): url to TS

* migrate more files

* fix the rest

* better exports

* fix lints

* fix building

* fix test

Co-authored-by: Daniel Emod Kovacs <[email protected]>
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.

3 participants