Skip to content

Commit e7460fb

Browse files
fix tsc
1 parent c3fe34b commit e7460fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/server/src/bootstrap.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ class BootstrapError extends Data.TaggedError("BootstrapError")<{
1111
readonly cause?: unknown;
1212
}> {}
1313

14-
export const readBootstrapEnvelope = Effect.fn("readBootstrapEnvelope")(function* <T>(
15-
schema: Schema.Codec<T>,
14+
export const readBootstrapEnvelope = Effect.fn("readBootstrapEnvelope")(function* <A, I>(
15+
schema: Schema.Codec<A, I>,
1616
fd: number,
1717
options?: {
1818
timeoutMs?: number;
1919
},
20-
): Effect.fn.Return<Option.Option<T>, BootstrapError> {
20+
): Effect.fn.Return<Option.Option<A>, BootstrapError> {
2121
const fdReady = yield* isFdReady(fd);
2222
if (!fdReady) return Option.none();
2323

2424
const stream = yield* makeBootstrapInputStream(fd);
2525

2626
const timeoutMs = options?.timeoutMs ?? 1000;
2727

28-
return yield* Effect.callback<Option.Option<T>, BootstrapError>((resume) => {
28+
return yield* Effect.callback<Option.Option<A>, BootstrapError>((resume) => {
2929
const input = readline.createInterface({
3030
input: stream,
3131
crlfDelay: Infinity,

0 commit comments

Comments
 (0)