Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Sep 13, 2021
1 parent e26f3df commit a19bb57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/gatsby/cache-dir/page-ssr/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type Opaque<K, T> = T & { __TYPE__: K }
type ISSRData = Opaque<
"ISSRData",
{
serverDataHeaders?: Record<string, string | number | Array<string>>
serverDataHeaders?: Record<string, string>
}
>

Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/src/utils/get-server-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { match } from "@gatsbyjs/reach-router/lib/utils"

export interface IServerData {
headers?: Record<string, string>
props?: Record<string, string | number | Array<string>>
props?: Record<string, unknown>
}

interface IModuleWithServerData {
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/src/utils/page-ssr-module/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface ISSRData {
page: IGatsbyPage
templateDetails: ITemplateDetails
potentialPagePath: string
serverDataHeaders?: Record<string, string | number | Array<string>>
serverDataHeaders?: Record<string, string>
}

const pageTemplateDetailsMap: Record<
Expand Down

0 comments on commit a19bb57

Please sign in to comment.