forked from gatsbyjs/gatsby
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1.0] Fix graphql compiler on typescript (gatsbyjs#949)
* Remove unused var * Fix indent * Add babel to typescript plugin It's usefull to parse any graphql queries * Let `parseEverything` really parse everything * Exclude tests, declarations and stories * Run yarn format * Don't filter tests and stories * Fix building schema console.time * Fix create-path on windows * Deal with `@` into keys This is to avoid conflit with `@types/{packageName}` pattern into packages.json * Add tests and refactor create-path * Fix types of gatsby-link * Add ts and tsx into query-watcher * Only take babel-plugin-extract-graphql plugin
- Loading branch information
1 parent
7a5d693
commit 1639377
Showing
9 changed files
with
21 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import { ClassicComponentClass } from "react"; | ||
import { LinkProps } from "react-router"; | ||
import * as React from "react"; | ||
|
||
type GatsbyLink = ClassicComponentClass<LinkProps>; | ||
declare const GatsbyLink: GatsbyLink; | ||
export interface GatsbyLinkProps { | ||
to: string; | ||
onClick?: (event: any) => void | ||
} | ||
|
||
export = GatsbyLink; | ||
export default class GatbyLink extends React.Component<GatsbyLinkProps, void>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters