@sonibble-creators/nest-microservice-pack
Version:
Microservice pack dependencies for NestJS
10 lines (9 loc) • 470 B
TypeScript
import { IPrimaryKey, Primary } from '@mikro-orm/core';
import { MongoDriver, MongoPlatform, ObjectId } from '@mikro-orm/mongodb';
export declare class StringMongoPlatform extends MongoPlatform {
normalizePrimaryKey<T = number | string>(data: Primary<T> | IPrimaryKey | ObjectId): T;
denormalizePrimaryKey(data: number | string): IPrimaryKey;
}
export declare class StringMongoDriver extends MongoDriver {
protected readonly platform: StringMongoPlatform;
}