Skip to content

Migrate some internals to typescript#418

Merged
askoufis merged 6 commits into
masterfrom
partial-typescript-migration
Jun 4, 2025
Merged

Migrate some internals to typescript#418
askoufis merged 6 commits into
masterfrom
partial-typescript-migration

Conversation

@felixhabib

Copy link
Copy Markdown
Contributor

These changes are based on the work from #313 (tysm @TheMightyPenguin 🙏). Splitting out this work into multiple new PRs for ease of reviewing and to be based off fresher code.

This first PR focusses on migrating the top level src files to Typescript, and any dependant files where required.

NB: The loadPlayroom function will now clear code immediately after loading if no initialCode argument is provided. This is to ensure saved code from indexedDB doesn't conflict with test expectations.

@felixhabib felixhabib requested a review from a team as a code owner June 3, 2025 01:13
@changeset-bot

changeset-bot Bot commented Jun 3, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 20e1057

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
playroom Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

askoufis
askoufis previously approved these changes Jun 3, 2025
Comment thread src/userDefinedModules.d.ts
@askoufis askoufis dismissed their stale review June 4, 2025 00:24

Stale

Comment on lines -1 to +4
// eslint-disable-next-line import-x/no-unresolved
import useScope from '__PLAYROOM_ALIAS__USE_SCOPE__';
import React, { createElement, Fragment } from 'react';
import scopeEval from 'scope-eval';

import useScope from '../../useScope';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Turns out the useScope entrypoint was never actually used at all, but now it is.

@askoufis askoufis requested a review from michaeltaranto June 4, 2025 02:36
@askoufis askoufis merged commit 1d59ba3 into master Jun 4, 2025
6 checks passed
@askoufis askoufis deleted the partial-typescript-migration branch June 4, 2025 04:12
@seek-oss-ci seek-oss-ci mentioned this pull request May 25, 2025
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.

3 participants