mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-02 22:35:53 +02:00
6 lines
194 B
TypeScript
6 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'));
|
|
}
|