UNPKG

@sloughrey/mock-typeorm

Version:

Never hit the database again while testing

6 lines (5 loc) 235 B
import { DataSource } from "typeorm"; export type DataSourceMethods = keyof { [K in keyof DataSource as DataSource[K] extends (...args: any[]) => any ? K : never]: K; }; export declare const dataSourceMethods: DataSourceMethods[];