Skip to content

Commit b0c4f6f

Browse files
remo5000ning-y
authored andcommitted
Add explicit type for argument externals (#18)
1 parent 7f08784 commit b0c4f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/createContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const defaultBuiltIns: CustomBuiltIns = {
154154
throw new Error('List visualizer is not enabled')}
155155
}
156156

157-
const createContext = <T>(chapter = 1, externals = [], externalContext?: T,
157+
const createContext = <T>(chapter = 1, externals: string[] = [], externalContext?: T,
158158
externalBuiltIns: CustomBuiltIns = defaultBuiltIns) => {
159159
const context = createEmptyContext(chapter, externalContext)
160160

0 commit comments

Comments
 (0)