Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1254 import bundle #1366

Merged
merged 8 commits into from
Nov 15, 2022
Merged

1254 import bundle #1366

merged 8 commits into from
Nov 15, 2022

Conversation

turadg
Copy link
Member

@turadg turadg commented Nov 15, 2022

Part of #1254

Copy link
Member

@kriskowal kriskowal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like progress to me.

@@ -52,6 +53,7 @@ export async function importBundle(bundle, options = {}) {
const { namespace } = await archive['import']({
globals: endowments,
__shimTransforms__: transforms,
// @ts-expect-error TS2740 missing properties from type
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m curious why Compartment is not more specifically typed here, since it should be in the /// <reference types="ses"/> above.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message without it:

Type 'typeof Compartment' is missing the following properties from type 'Compartment': globalThis, evaluate, import, load, and 2 more.

@turadg turadg merged commit c62ba70 into master Nov 15, 2022
@turadg turadg deleted the 1254-import-bundle branch November 15, 2022 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants