Skip to content

Commit

Permalink
chore(gatsby): Remove navigate from PageProps (#37624)
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed Feb 7, 2023
1 parent 890396e commit 7eb0ae6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/gatsby/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from "react"
import { Renderer } from "react-dom"
import { EventEmitter } from "events"
import { WindowLocation, NavigateFn, NavigateOptions } from "@reach/router" // These come from `@types/reach__router`
import { WindowLocation, NavigateOptions } from "@reach/router" // These come from `@types/reach__router`
import { Reporter } from "gatsby-cli/lib/reporter/reporter"
import { Span } from "opentracing"
export { Reporter }
Expand Down Expand Up @@ -96,8 +96,6 @@ export type PageProps<
uri: string
/** An extended version of window.document which comes from @react/router */
location: WindowLocation<LocationState>
/** A way to handle programmatically controlling navigation */
navigate: NavigateFn
/** You can't get passed children as this is the root user-land component */
children: undefined
/** The URL parameters when the page has a `matchPath` */
Expand Down

0 comments on commit 7eb0ae6

Please sign in to comment.