-
Notifications
You must be signed in to change notification settings - Fork 72
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
1254 import bundle #1366
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
fixes inclusion of Typescript 3
6e893bb
to
af89f8c
Compare
Part of #1254