Skip to content

Commit

Permalink
fix(ses): fix ThirdPartyStaticModuleInterface type
Browse files Browse the repository at this point in the history
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<PropertyKey, any>` is about as loose as I could think of.
  • Loading branch information
boneskull committed Oct 27, 2023
1 parent a9a697d commit 47dbf9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ses/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface ThirdPartyStaticModuleInterface {
imports: Array<string>;
exports: Array<string>;
execute(
proxiedExports: Object,
proxiedExports: Record<PropertyKey, any>,
compartment: Compartment,
resolvedImports: Record<string, string>,
): void;
Expand Down

0 comments on commit 47dbf9c

Please sign in to comment.