mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
refactor: dynamic list to nestjs
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { Model as ObjectionModel } from 'objection';
|
||||
import { BaseModel } from "@/models/Model";
|
||||
;
|
||||
type GConstructor<T = {}> = new (...args: any[]) => T;
|
||||
|
||||
export const CustomViewBaseModel = (Model) =>
|
||||
class extends Model {
|
||||
export const CustomViewBaseModelMixin = <T extends GConstructor<BaseModel>>(Model: T) =>
|
||||
class CustomViewBaseModel extends Model {
|
||||
/**
|
||||
* Retrieve the default custom views, roles and columns.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user