You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This last part is missing from the problem's tests at the bottom. (It's visible in the solutions video and in the problem's description on the side.
it("Should not be available on globalThis", () => {
expect(
// @ts-expect-error
globalThis.makeGreeting,
).toBe(undefined);
});
Edit:
After adding this part and trying it out, I see it's not totally appropriate - perhaps typescript has changed its behavior in the past few updates.
The text was updated successfully, but these errors were encountered:
advanced-patterns-workshop/src/02-globals/08-add-to-window.problem.ts
Line 19 in 84bdf1f
This last part is missing from the problem's tests at the bottom. (It's visible in the solutions video and in the problem's description on the side.
Edit:
After adding this part and trying it out, I see it's not totally appropriate - perhaps typescript has changed its behavior in the past few updates.
The text was updated successfully, but these errors were encountered: