Skip to content
Browse files

Fix TS def for Routes & add withRouteData & withSiteData (#1174)

  • Loading branch information...
bwallberg authored and sw-yx committed May 7, 2019
1 parent 03031c8 commit 045a0e119974f46f68c633ff65116f9d74807caf
Showing with 3 additions and 1 deletion.
  1. +3 −1 packages/react-static/src/index.d.ts
@@ -17,10 +17,12 @@ declare module 'react-static' {
// Passing on helmet typings as "Head"
export { Helmet as Head } from 'react-helmet'

export class Routes extends React.Component<{ path: String }> {}
export class Routes extends React.Component<{ path?: String, default?: boolean }> {}
export class Root extends React.Component {}
export function useRouteData<T = any>(): T
export function useSiteData<T = any>(): T
export function withRouteData(comp: any): any
export function withSiteData(comp: any): any
export function prefetch(path: any): Promise<any>
export function addPrefetchExcludes(arg: String[]): void
export const Prefetch: React.Component

0 comments on commit 045a0e1

Please sign in to comment.
You can’t perform that action at this time.