Skip to content

Commit

Permalink
chore(gatsby): properly typed return types of replaceHydrateFunction (#…
Browse files Browse the repository at this point in the history
…22854)

* feat: properly typed return types of replaceHydrateFunction

* refactor: use renderer type in react-dom instead of manually define
  • Loading branch information
rayriffy committed Apr 10, 2020
1 parent ed2762f commit 84a37d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gatsby/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as React from "react"
import { Renderer } from "react-dom"
import { EventEmitter } from "events"
import { WindowLocation, NavigateFn } from "@reach/router"
import { createContentDigest } from "gatsby-core-utils"
Expand Down Expand Up @@ -537,7 +538,7 @@ export interface GatsbyBrowser {
args: ReplaceComponentRendererArgs,
options: PluginOptions
): any
replaceHydrateFunction?(args: BrowserPluginArgs, options: PluginOptions): any
replaceHydrateFunction?(args: BrowserPluginArgs, options: PluginOptions): Renderer
shouldUpdateScroll?(args: ShouldUpdateScrollArgs, options: PluginOptions): any
wrapPageElement?(
args: WrapPageElementBrowserArgs,
Expand Down

0 comments on commit 84a37d2

Please sign in to comment.