From f6265f9a3b78b3c9ad10ade4e3bd96cc37d1d9d6 Mon Sep 17 00:00:00 2001 From: Roderik van der Veer Date: Sun, 31 May 2020 16:19:01 +0200 Subject: [PATCH] fix: export context Solved the `Exported variable 'xxx' has or is using name 'Context' from external module "./node_modules/daf-selective-disclosure/build/graphql" but cannot be named.` error when using the resolver. --- packages/daf-selective-disclosure/src/graphql.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/daf-selective-disclosure/src/graphql.ts b/packages/daf-selective-disclosure/src/graphql.ts index 6f3d6cead..bedf94c6e 100644 --- a/packages/daf-selective-disclosure/src/graphql.ts +++ b/packages/daf-selective-disclosure/src/graphql.ts @@ -3,7 +3,7 @@ import { ActionTypes, ActionSignSdr, SelectiveDisclosureRequest } from './action import { findCredentialsForSdr, validatePresentationAgainstSdr } from './helper' import { MessageTypes } from './message-handler' -interface Context { +export interface Context { agent: Agent }