UNPKG

@sonibble-creators/nest-microservice-pack

Version:
10 lines (9 loc) 470 B
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; }