Package imports
All checks were successful
Lint / lint (push) Successful in 11s

This commit is contained in:
Julien Valverdé
2024-06-18 02:36:01 +02:00
parent ed2de8a0f6
commit a2d7afa6cd
7 changed files with 48 additions and 38 deletions

View File

@@ -1,11 +1,11 @@
import type { Struct } from "@effect/schema/Schema"
import { Schema as S } from "@effect/schema"
import { makeObservable, observable, type CreateObservableOptions } from "mobx"
import { mapValues } from "remeda"
interface MobXObservableInput {
new(...args: any[]): Struct.Type<Struct.Fields>
readonly fields: { readonly [K in keyof Struct.Fields]: Struct.Fields[K] }
new(...args: any[]): S.Struct.Type<S.Struct.Fields>
readonly fields: { readonly [K in keyof S.Struct.Fields]: S.Struct.Fields[K] }
}
export function MobXObservable<