From a19bb574c6cc2fed5b745b94ba9985f66f6cce88 Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Mon, 13 Sep 2021 18:24:38 +0200 Subject: [PATCH] fix types --- packages/gatsby/cache-dir/page-ssr/index.d.ts | 2 +- packages/gatsby/src/utils/get-server-data.ts | 2 +- packages/gatsby/src/utils/page-ssr-module/entry.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/gatsby/cache-dir/page-ssr/index.d.ts b/packages/gatsby/cache-dir/page-ssr/index.d.ts index 04df31ebfe865..2cedbe7685584 100644 --- a/packages/gatsby/cache-dir/page-ssr/index.d.ts +++ b/packages/gatsby/cache-dir/page-ssr/index.d.ts @@ -30,7 +30,7 @@ type Opaque = T & { __TYPE__: K } type ISSRData = Opaque< "ISSRData", { - serverDataHeaders?: Record> + serverDataHeaders?: Record } > diff --git a/packages/gatsby/src/utils/get-server-data.ts b/packages/gatsby/src/utils/get-server-data.ts index 3178ca1ada3f7..3cead4d27fbf3 100644 --- a/packages/gatsby/src/utils/get-server-data.ts +++ b/packages/gatsby/src/utils/get-server-data.ts @@ -5,7 +5,7 @@ import { match } from "@gatsbyjs/reach-router/lib/utils" export interface IServerData { headers?: Record - props?: Record> + props?: Record } interface IModuleWithServerData { diff --git a/packages/gatsby/src/utils/page-ssr-module/entry.ts b/packages/gatsby/src/utils/page-ssr-module/entry.ts index 59c3781e1bd12..09ad424243b36 100644 --- a/packages/gatsby/src/utils/page-ssr-module/entry.ts +++ b/packages/gatsby/src/utils/page-ssr-module/entry.ts @@ -28,7 +28,7 @@ export interface ISSRData { page: IGatsbyPage templateDetails: ITemplateDetails potentialPagePath: string - serverDataHeaders?: Record> + serverDataHeaders?: Record } const pageTemplateDetailsMap: Record<