Refactor
Lint / lint (push) Successful in 15s

This commit is contained in:
Julien Valverdé
2026-06-23 04:08:49 +02:00
parent a86cb7e024
commit 65fcfb395e
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -29,16 +29,16 @@ export const preludeLayer: Layer.Layer<
)
export const isReactRuntime = (u: unknown): u is ReactRuntime<unknown, unknown> => Predicate.hasProperty(u, TypeId)
export const isReactRuntime = (u: unknown): u is ReactRuntime<unknown, unknown> => Predicate.hasProperty(u, ReactRuntimeTypeId)
export const make = <R, ER>(
layer: Layer.Layer<R, ER>,
memoMap?: Layer.MemoMap,
): ReactRuntime<Layer.Success<typeof layer> | R, ER> => Object.setPrototypeOf(
): ReactRuntime<Layer.Success<typeof preludeLayer> | R, ER> => Object.setPrototypeOf(
Object.assign(function() {}, {
runtime: ManagedRuntime.make(
Layer.merge(layer, preludeLayer),
memoMap,
{ memoMap },
),
// biome-ignore lint/style/noNonNullAssertion: context initialization
context: React.createContext<Context.Context<R>>(null!),