1- import { Chapter , Language , SourceError , Variant } from 'js-slang/dist/types' ;
1+ import { Chapter , Language , type SourceError , type Value , Variant } from 'js-slang/dist/types' ;
22
3- import { AchievementState } from '../../features/achievement/AchievementTypes' ;
4- import { DashboardState } from '../../features/dashboard/DashboardTypes' ;
5- import { PlaygroundState } from '../../features/playground/PlaygroundTypes' ;
3+ import type { AchievementState } from '../../features/achievement/AchievementTypes' ;
4+ import type { DashboardState } from '../../features/dashboard/DashboardTypes' ;
5+ import type { PlaygroundState } from '../../features/playground/PlaygroundTypes' ;
66import { PlaybackStatus , RecordingStatus } from '../../features/sourceRecorder/SourceRecorderTypes' ;
7- import { StoriesEnvState , StoriesState } from '../../features/stories/StoriesTypes' ;
7+ import type { StoriesEnvState , StoriesState } from '../../features/stories/StoriesTypes' ;
88import { freshSortState } from '../../pages/academy/grading/subcomponents/GradingSubmissionsTable' ;
99import { WORKSPACE_BASE_PATHS } from '../../pages/fileSystem/createInBrowserFileSystem' ;
1010import { defaultFeatureFlags , FeatureFlagsState } from '../featureFlags' ;
11- import { FileSystemState } from '../fileSystem/FileSystemTypes' ;
12- import { SideContentManagerState , SideContentState } from '../sideContent/SideContentTypes' ;
11+ import type { FileSystemState } from '../fileSystem/FileSystemTypes' ;
12+ import type { SideContentManagerState , SideContentState } from '../sideContent/SideContentTypes' ;
1313import Constants from '../utils/Constants' ;
1414import { createContext } from '../utils/JsSlangHelper' ;
15- import {
15+ import type {
1616 DebuggerContext ,
1717 WorkspaceLocation ,
1818 WorkspaceManagerState ,
1919 WorkspaceState
2020} from '../workspace/WorkspaceTypes' ;
21- import { RouterState } from './types/CommonsTypes' ;
21+ import type { RouterState } from './types/CommonsTypes' ;
2222import { ExternalLibraryName } from './types/ExternalTypes' ;
23- import { SessionState } from './types/SessionTypes' ;
24- import { VscodeState as VscodeState } from './types/VscodeTypes' ;
23+ import type { SessionState } from './types/SessionTypes' ;
24+ import type { VscodeState as VscodeState } from './types/VscodeTypes' ;
2525
2626export type OverallState = {
2727 readonly router : RouterState ;
@@ -74,7 +74,7 @@ export type CodeOutput = {
7474 */
7575export type ResultOutput = {
7676 type : 'result' ;
77- value : any ;
77+ value : Value ;
7878 consoleLogs : string [ ] ;
7979 runtime ?: number ;
8080 isProgram ?: boolean ;
@@ -160,7 +160,6 @@ type LanguageFeatures = Partial<{
160160const variantDisplay : Map < Variant , string > = new Map ( [
161161 [ Variant . TYPED , 'Typed' ] ,
162162 [ Variant . WASM , 'WebAssembly' ] ,
163- [ Variant . CONCURRENT , 'Concurrent' ] ,
164163 [ Variant . NATIVE , 'Native' ] ,
165164 [ Variant . EXPLICIT_CONTROL , 'Explicit-Control' ]
166165] ) ;
@@ -266,7 +265,6 @@ const sourceSubLanguages: Array<Pick<SALanguage, 'chapter' | 'variant'>> = [
266265
267266 { chapter : Chapter . SOURCE_3 , variant : Variant . DEFAULT } ,
268267 { chapter : Chapter . SOURCE_3 , variant : Variant . TYPED } ,
269- { chapter : Chapter . SOURCE_3 , variant : Variant . CONCURRENT } ,
270268 { chapter : Chapter . SOURCE_3 , variant : Variant . NATIVE } ,
271269
272270 { chapter : Chapter . SOURCE_4 , variant : Variant . DEFAULT } ,
@@ -288,13 +286,13 @@ export const sourceLanguages: SALanguage[] = sourceSubLanguages.map(sublang => {
288286 ( variant === Variant . DEFAULT || variant === Variant . NATIVE || variant === Variant . TYPED ) ;
289287
290288 // Enable CSE Machine for Source Chapter 3 and above
291- supportedFeatures . cseMachine = chapter >= Chapter . SOURCE_3 && variant !== Variant . CONCURRENT ;
289+ supportedFeatures . cseMachine = chapter >= Chapter . SOURCE_3 ;
292290
293291 // Local imports/exports require Source 2+ as Source 1 does not have lists.
294292 supportedFeatures . multiFile = chapter >= Chapter . SOURCE_2 ;
295293
296294 // Disable REPL for concurrent variants
297- supportedFeatures . repl = variant !== Variant . CONCURRENT ;
295+ supportedFeatures . repl = true ;
298296
299297 return {
300298 ...sublang ,
0 commit comments