This commit is contained in:
parent
d296658f64
commit
f238499f06
1 changed files with 4 additions and 0 deletions
|
@ -214,6 +214,10 @@ export function model<
|
|||
return define(new ModelType(definedModel));
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility function to fix circular dependencies issues.
|
||||
* @param definedModel A function returning the model to use.
|
||||
*/
|
||||
export function circular<T extends object>(
|
||||
definedModel: () => any,
|
||||
): () => GenericModelManager<T> {
|
||||
|
|
Loading…
Add table
Reference in a new issue