From 47dbf9cf510ade4785f23cb246c20cfcb26c7235 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Fri, 27 Oct 2023 14:28:44 -0700 Subject: [PATCH] fix(ses): fix ThirdPartyStaticModuleInterface type The `proxiedExports` param to the `execute` function cannot be `Object`, which is the literal `Object`. It must be _some_ kind of `Object`, however, and `Record` is about as loose as I could think of. --- packages/ses/types.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ses/types.d.ts b/packages/ses/types.d.ts index aa5ddae860..05d00a0f28 100644 --- a/packages/ses/types.d.ts +++ b/packages/ses/types.d.ts @@ -59,7 +59,7 @@ export interface ThirdPartyStaticModuleInterface { imports: Array; exports: Array; execute( - proxiedExports: Object, + proxiedExports: Record, compartment: Compartment, resolvedImports: Record, ): void;