This commit is contained in:
Julien Valverdé
2024-06-11 02:56:47 +02:00
parent f0a01a3d73
commit 98a48a8982

View File

@@ -4,8 +4,8 @@ import type { TMutableClass } from "./TMutableClass"
import type { HasFields, MissingSelfGeneric } from "./util"
export const MutableClass = <Self = never>(identifier: string) => (
<Fields extends Struct.Fields>(
export function MutableClass<Self = never>(identifier: string) {
return <Fields extends Struct.Fields>(
fieldsOr: Fields | HasFields<Fields>,
annotations?: Annotations.Schema<Self>,
): (
@@ -22,4 +22,4 @@ export const MutableClass = <Self = never>(identifier: string) => (
>
) =>
S.Class<Self>(identifier)(fieldsOr, annotations)
)
}