adapter
@tsed/adapters
Usage
typescript
import { adapter } from "@tsed/adapters";
See /packages/orm/adapters/src/types/decorators/injectAdapter.ts.
Overview
ts
function adapter<Model>(options: AdapterInvokeOptions<Model>): Adapter<Model>;
export function adapter<Model>(model: Type<Model>, options?: Partial<Omit<AdapterInvokeOptions, "client">>): Adapter<Model>;
export function adapter<Model>(collectionName: string, model: Type<Model>, options?: Partial<Omit<AdapterInvokeOptions, "collectionName" | "client">>): Adapter<Model>;