summaryrefslogtreecommitdiff
path: root/lib/model/field.mli
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2026-11-21 12:22:50 +0100
committerSébastien Dailly <sebastien@dailly.me>2026-11-21 12:22:50 +0100
commitbc78bea63b7c75e8a9d222dc86fb75ed293a2242 (patch)
tree6c864df4d57200c20c7f712ada20a6111ca31538 /lib/model/field.mli
parent9f2a57603dbfce428af36e82fb1c7cdc6e1ad0da (diff)
Renamed the module Typ into Types
Diffstat (limited to 'lib/model/field.mli')
-rw-r--r--lib/model/field.mli10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/model/field.mli b/lib/model/field.mli
index 0619f33..3a19ab8 100644
--- a/lib/model/field.mli
+++ b/lib/model/field.mli
@@ -2,16 +2,18 @@ type textI18n = (string * string) list
(** A label is just an association list*)
type validation = { rule : string list Dsl.t; message : textI18n }
-type 't field_ex = T : ('db, 'ocaml, 't) Typ.t -> 't field_ex
+type 't field_ex = T : ('db, 'ocaml, 't) Types.t -> 't field_ex
type 'ref t
(** Description of a field *)
val named_of :
- 'ref t -> ('db, 'ocaml, 'ref) Typ.t -> (('db, 'ocaml, 'ref) Typ.t) Typ.named option
-(** [named_of field typ] is [Some named] — the field's {!Typ.named} type,
+ 'ref t ->
+ ('db, 'ocaml, 'ref) Types.t ->
+ ('db, 'ocaml, 'ref) Types.t Types.named option
+(** [named_of field typ] is [Some named] — the field's {!Types.named} type,
stamped with ['db] and ['ocaml] — when [typ] matches the declared type of
- [field] (checked with {!Typ.eq} and {!Typ.eq_ocaml}); [None] on type
+ [field] (checked with {!Types.eq} and {!Types.eq_ocaml}); [None] on type
mismatch *)
val create :