Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviergonz committed Nov 12, 2023
1 parent dc17169 commit 126eab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lib/src/modelShared/modelDecorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ import {
*/
export const model: (
name: string
) => <MC extends ModelClass<AnyModel | AnyDataModel>>(clazz: MC, ...args: any[]) => MC | void =
) => <MC extends ModelClass<AnyModel | AnyDataModel>>(clazz: MC, ...args: any[]) => MC =
(name) =>
(clazz, ...args) => {
const ctx = typeof args[1] === "object" ? (args[1] as ClassDecoratorContext) : undefined

return internalModel(name, clazz, ctx?.addInitializer)
return internalModel(name, clazz, ctx?.addInitializer) as any
}

const afterClassInitializationData = new WeakMap<
Expand Down

0 comments on commit 126eab2

Please sign in to comment.