History

Fix mobile native static check typecheck

Julius Marminge committed 6 months ago

Commit fd93d7f1 parent 7bea6821 file · +12 −2Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/mobile-native-static-check.ts+12−2
@@ -2,7 +2,13 @@ · 1 unmodified line
22
33 import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
44 import * as NodeServices from "@effect/platform-node/NodeServices";
5−import { Console, Data, Effect, FileSystem, Logger, Path } from "effect";
5+import * as Console from "effect/Console";
6+import * as Data from "effect/Data";
7+import * as Effect from "effect/Effect";
8+import * as FileSystem from "effect/FileSystem";
9+import * as Logger from "effect/Logger";
10+import * as Path from "effect/Path";
11+import * as PlatformError from "effect/PlatformError";
612 import { Command } from "effect/unstable/cli";
713 import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
814
@@ -100,7 +106,11 @@ const runCommand = Effect.fn("runCommand")(function* ( · 91 unmodified lines
100106
101107 function collectSources(
102108 directory: string,
103−): Effect.Effect<ReadonlyArray<string>, unknown, FileSystem.FileSystem | Path.Path> {
109+): Effect.Effect<
110+ ReadonlyArray<string>,
111+ PlatformError.PlatformError,
112+ FileSystem.FileSystem | Path.Path
113+> {
104114 return Effect.gen(function* () {
105115 const fs = yield* FileSystem.FileSystem;
106116 const path = yield* Path.Path;