Fix
This commit is contained in:
@@ -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)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user