From 9d2b7cc03fff531ef578dfe1b98c7e32012a3fd9 Mon Sep 17 00:00:00 2001 From: nivedin Date: Mon, 11 Dec 2023 17:39:40 +0530 Subject: [PATCH] refactor: update inherited property schema --- .../src/helpers/types/HoppInheritedProperties.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/hoppscotch-common/src/helpers/types/HoppInheritedProperties.ts b/packages/hoppscotch-common/src/helpers/types/HoppInheritedProperties.ts index 100619bf9..13c70da07 100644 --- a/packages/hoppscotch-common/src/helpers/types/HoppInheritedProperties.ts +++ b/packages/hoppscotch-common/src/helpers/types/HoppInheritedProperties.ts @@ -1,14 +1,19 @@ -import { HoppRESTRequest } from "@hoppscotch/data" +import { + GQLHeader, + HoppGQLAuth, + HoppRESTHeader, + HoppRESTAuth, +} from "@hoppscotch/data" export type HoppInheritedProperty = { auth: { parentID: string parentName: string - inheritedAuth: HoppRESTRequest["auth"] + inheritedAuth: HoppRESTAuth | HoppGQLAuth } headers: { parentID: string parentName: string - inheritedHeader?: HoppRESTRequest["headers"][number] + inheritedHeader: HoppRESTHeader | GQLHeader }[] }