-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
chore(gatsby-core-utils): ci to TS #22047
Conversation
@@ -1,13 +1,13 @@ | |||
const ciInfo = jest.genMockFromModule(`ci-info`) | |||
const ciInfo: typeof import("ci-info") = jest.genMockFromModule(`ci-info`) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
* 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]>
Collection ticket for these tasks: #22041
☂ ticket: #21995