Form type
Some checks failed
Lint / lint (push) Failing after 42s

This commit is contained in:
Julien Valverdé
2025-08-24 13:48:09 +02:00
parent 8057163ad0
commit 993e2c1038

View File

@@ -0,0 +1,15 @@
import { Effectable, Schema, type Pipeable } from "effect"
export const TypeId: unique symbol = Symbol.for("effect-fc/types/Form")
export type TypeId = typeof TypeId
export interface Form<in out A, in out I = A, out R = never>
extends Pipeable.Pipeable {
readonly schema: Schema.Schema<A, I, R>
}
class FormImpl<in out A, in out I, out R>
extends Effectable.Class<> implements Form<> {
readonly [TypeId]: TypeId = TypeId
}