mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-16 23:58:54 +09:00
2776934728
* Update is-objectid.ts * Update is-objectid.ts
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'));
|
|
}
|