mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-10-05 08:55:42 +00:00
5 lines
194 B
TypeScript
5 lines
194 B
TypeScript
import { ObjectID } from 'mongodb';
|
|
|
|
export default function(x: any): x is ObjectID {
|
|
return x && typeof x === 'object' && (x.hasOwnProperty('toHexString') || x.hasOwnProperty('_bsontype'));
|
|
}
|