diff --git a/src/index.ts b/src/index.ts index 35e05f5..a43ae36 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,6 +10,7 @@ export abstract class BaseEntity { return orm.em.getRepository(this) } + // Native Functions static count(this: ObjectType, ...args: Parameters['count']>): ReturnType['count']> { return (this as any).getRepo().count(...args) }