Fix
This commit is contained in:
@@ -4,8 +4,8 @@ import type { TMutableClass } from "./TMutableClass"
|
|||||||
import type { HasFields, MissingSelfGeneric } from "./util"
|
import type { HasFields, MissingSelfGeneric } from "./util"
|
||||||
|
|
||||||
|
|
||||||
export const MutableClass = <Self = never>(identifier: string) => (
|
export function MutableClass<Self = never>(identifier: string) {
|
||||||
<Fields extends Struct.Fields>(
|
return <Fields extends Struct.Fields>(
|
||||||
fieldsOr: Fields | HasFields<Fields>,
|
fieldsOr: Fields | HasFields<Fields>,
|
||||||
annotations?: Annotations.Schema<Self>,
|
annotations?: Annotations.Schema<Self>,
|
||||||
): (
|
): (
|
||||||
@@ -22,4 +22,4 @@ export const MutableClass = <Self = never>(identifier: string) => (
|
|||||||
>
|
>
|
||||||
) =>
|
) =>
|
||||||
S.Class<Self>(identifier)(fieldsOr, annotations)
|
S.Class<Self>(identifier)(fieldsOr, annotations)
|
||||||
)
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user