Skip to content

Commit 185983b

Browse files
authored
Make types available to modules (#1390)
1 parent 56ad2c0 commit 185983b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/modules/requireProvider.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as jsslang from '..'
22
import * as stdlib from '../stdlib'
33
import type { Context } from '../types'
4+
import * as types from '../types'
45

56
/**
67
* Returns a function that simulates the job of Node's `require`. The require
@@ -21,7 +22,8 @@ export const getRequireProvider = (context: Context) => (x: string) => {
2122
'js-slang': {
2223
...jsslang,
2324
dist: {
24-
stdlib
25+
stdlib,
26+
types
2527
},
2628
context
2729
}

0 commit comments

Comments
 (0)