Skip to content

Commit

Permalink
chore(gatsby): Update typings to contain PageRenderer & parsePath (fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jariz authored and sidharthachatterjee committed Feb 18, 2019
1 parent ce0f2d2 commit fa6e327
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/gatsby/index.d.ts
@@ -1,4 +1,5 @@
import * as React from "react"
import { WindowLocation } from "@reach/router"

export {
default as Link,
Expand All @@ -23,3 +24,11 @@ export class StaticQuery extends React.Component<StaticQueryProps> {}
export const useStaticQuery: <TData = any>(query: any) => TData

export const graphql: (query: TemplateStringsArray) => void

export const parsePath: (path: string) => WindowLocation

export interface PageRendererProps {
location: WindowLocation
}

export class PageRenderer extends React.Component<PageRendererProps> {}

0 comments on commit fa6e327

Please sign in to comment.