@accounts/module-typeorm
Version:
TypeORM Database Interface GraphQL Module
13 lines (12 loc) • 709 B
TypeScript
import { User, UserEmail, UserSession, UserService, type AccountsTypeormOptions } from '@accounts/typeorm';
import { type DatabaseType } from '@accounts/types';
import { Connection } from 'typeorm';
export interface AccountsTypeORMModuleConfig extends AccountsTypeormOptions {
connection?: Connection;
type?: DatabaseType.Both;
UserEntity?: typeof User;
UserEmailEntity?: typeof UserEmail;
UserSessionEntity?: typeof UserSession;
UserServiceEntity?: typeof UserService;
}
export declare const createAccountsTypeORMModule: ({ connection, UserEmailEntity, UserSessionEntity, UserServiceEntity, UserEntity, ...options }?: AccountsTypeORMModuleConfig) => import("graphql-modules").Module;