chore: generate

This commit is contained in:
opencode-agent[bot]
2026-03-14 15:59:01 +00:00
parent cec1255b36
commit b698f14e55
4 changed files with 244 additions and 239 deletions

View File

@@ -46,9 +46,8 @@ export function Newtype<Self>() {
Object.setPrototypeOf(Base, schema)
return Base as unknown as
& (abstract new (_: never) => Branded)
& { readonly makeUnsafe: (value: Schema.Schema.Type<S>) => Self }
& Omit<Schema.Opaque<Self, S, {}>, "makeUnsafe">
return Base as unknown as (abstract new (_: never) => Branded) & {
readonly makeUnsafe: (value: Schema.Schema.Type<S>) => Self
} & Omit<Schema.Opaque<Self, S, {}>, "makeUnsafe">
}
}

View File

@@ -68,7 +68,10 @@ test("InstanceState is disposed on instance reload", async () => {
const state = yield* InstanceState.make(() =>
Effect.acquireRelease(
Effect.sync(() => ({ n: ++n })),
(value) => Effect.sync(() => { seen.push(String(value.n)) }),
(value) =>
Effect.sync(() => {
seen.push(String(value.n))
}),
),
)
@@ -94,7 +97,10 @@ test("InstanceState is disposed on disposeAll", async () => {
const state = yield* InstanceState.make((dir) =>
Effect.acquireRelease(
Effect.sync(() => ({ dir })),
(value) => Effect.sync(() => { seen.push(value.dir) }),
(value) =>
Effect.sync(() => {
seen.push(value.dir)
}),
),
)