question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

missing printTypeDefinitions for CreateSchemaCustomizationArgs

See original GitHub issue

Description

For typescripts, actions in CreateSchemaCustomizationArgs is missing a declaration for printTypeDefinitions

Steps to reproduce

  • Start a brand new typescript gatsby project.
  • Add a function export function createSchemaCustomization({ actions }: ): void {}in gatsby-node.ts (or importCreateSchemaCustomizationArgs` in any ts files).
  • note that actions does not have createSchemaCustomization

Expected result

Types for actions.createSchemaCustomization should be present.

Actual result

Types for actions.createSchemaCustomization are missing.

Environment

System: OS: macOS 10.15.7 CPU: (12) x64 Intel® Core™ i7-8850H CPU @ 2.60GHz Shell: 5.8 - /usr/local/bin/zsh Binaries: Node: 14.13.1 - ~/.nvm/versions/node/v14.13.1/bin/node npm: 6.14.8 - ~/.nvm/versions/node/v14.13.1/bin/npm Languages: Python: 2.7.16 - /usr/bin/python Browsers: Chrome: 86.0.4240.80 Firefox: 81.0.2 Safari: 14.0 npmPackages: gatsby: ^2.24.73 => 2.24.73 gatsby-image: ^2.4.21 => 2.4.21 gatsby-plugin-intl: ^0.3.3 => 0.3.3 gatsby-plugin-manifest: ^2.4.34 => 2.4.34 gatsby-plugin-offline: ^3.2.31 => 3.2.31 gatsby-plugin-react-helmet: ^3.3.14 => 3.3.14 gatsby-plugin-sharp: ^2.6.40 => 2.6.40 gatsby-plugin-styled-components: ^3.3.14 => 3.3.14 gatsby-plugin-ts-config: ^1.1.0 => 1.1.0 gatsby-plugin-typescript: ^2.4.21 => 2.4.21 gatsby-source-contentstack: ^2.2.11 => 2.2.11 gatsby-source-filesystem: ^2.3.34 => 2.3.34 gatsby-transformer-sharp: ^2.5.17 => 2.5.17

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
palaparthicommented, Oct 26, 2020

Hey @palaparthi, are you still working on this ? If not then I want to work on this Thanks 😃

Sure go ahead

1reaction
palaparthicommented, Oct 22, 2020

I would like to give this a go

Read more comments on GitHub >

github_iconTop Results From Across the Web

Actions | Gatsby
Documentation on actions and how they help you manipulate state within Gatsby.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found