Skip to content

Commit

Permalink
feat(ses): add ImportNowHook to CompartmentOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull authored and naugtur committed Apr 30, 2024
1 parent 7bc22f6 commit e0300ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ses/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@ export type ModuleMapHook = (
moduleSpecifier: string,
) => string | ModuleExportsNamespace | void;
export type ImportHook = (moduleSpecifier: string) => Promise<StaticModuleType>;
export type ImportNowHook = (moduleSpecifier: string) => StaticModuleType;

export interface CompartmentOptions {
name?: string;
transforms?: Array<Transform>;
moduleMapHook?: ModuleMapHook;
importHook?: ImportHook;
importNowHook?: ImportNowHook;
resolveHook?: ResolveHook;
__shimTransforms__?: Array<Transform>;
}
Expand Down

0 comments on commit e0300ba

Please sign in to comment.