Skip to content

Commit 44a91c8

Browse files
committed
Remove as any
1 parent 3d1700f commit 44a91c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/bsc-args/rewatch.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ export async function getRewatchBscArgs(
127127
const bscExe = await utils.findBscExeBinary(
128128
entry.project.workspaceRootPath,
129129
);
130-
const env = {};
130+
const env: NodeJS.ProcessEnv = {};
131131
if (bscExe != null) {
132-
(env as any)["RESCRIPT_BSC_EXE"] = bscExe;
132+
env["RESCRIPT_BSC_EXE"] = bscExe;
133133
}
134134

135135
// For ReScript >= 12.0.0-beta.11 we need to set RESCRIPT_RUNTIME
@@ -141,7 +141,7 @@ export async function getRewatchBscArgs(
141141
let rescriptRuntime: string | null = await getRuntimePath(entry);
142142

143143
if (rescriptRuntime !== null) {
144-
(env as any)["RESCRIPT_RUNTIME"] = rescriptRuntime;
144+
env["RESCRIPT_RUNTIME"] = rescriptRuntime;
145145
} else {
146146
// If no runtime was found, we should let the user know.
147147
let params: p.ShowMessageParams = {

0 commit comments

Comments
 (0)