Page Contents
Home > @loopback/repository > isBsonType
isBsonType() function
Checks if the value is BsonType (mongodb) It uses a general way to check the type ,so that it can detect different versions of bson that might be used in the code base. Might need to update in the future.
Signature:
export declare function isBsonType(value: unknown): value is object;
Parameters
Parameter | Type | Description |
---|---|---|
value | unknown |
Returns:
value is object