From fd93d7f0d99bf2db2c0ffe75a0ddd6ed140b8fd0 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 8 May 2026 13:22:16 -0700 Subject: [PATCH] Fix mobile native static check typecheck Co-authored-by: codex --- scripts/mobile-native-static-check.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/mobile-native-static-check.ts b/scripts/mobile-native-static-check.ts index 888bb4516f..a3a7224a2d 100644 --- a/scripts/mobile-native-static-check.ts +++ b/scripts/mobile-native-static-check.ts @@ -2,7 +2,13 @@ import * as NodeRuntime from "@effect/platform-node/NodeRuntime"; import * as NodeServices from "@effect/platform-node/NodeServices"; -import { Console, Data, Effect, FileSystem, Logger, Path } from "effect"; +import * as Console from "effect/Console"; +import * as Data from "effect/Data"; +import * as Effect from "effect/Effect"; +import * as FileSystem from "effect/FileSystem"; +import * as Logger from "effect/Logger"; +import * as Path from "effect/Path"; +import * as PlatformError from "effect/PlatformError"; import { Command } from "effect/unstable/cli"; import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process"; @@ -100,7 +106,11 @@ const runCommand = Effect.fn("runCommand")(function* ( function collectSources( directory: string, -): Effect.Effect, unknown, FileSystem.FileSystem | Path.Path> { +): Effect.Effect< + ReadonlyArray, + PlatformError.PlatformError, + FileSystem.FileSystem | Path.Path +> { return Effect.gen(function* () { const fs = yield* FileSystem.FileSystem; const path = yield* Path.Path;