mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-15 09:15:44 +01:00
Use is
syntax (#4079)
This commit is contained in:
parent
c44c777976
commit
2f215ea34c
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
||||||
export default function(x: any): boolean {
|
import { ObjectID } from 'mongodb';
|
||||||
|
|
||||||
|
export default function(x: any): x is ObjectID {
|
||||||
return x.hasOwnProperty('toHexString') || x.hasOwnProperty('_bsontype');
|
return x.hasOwnProperty('toHexString') || x.hasOwnProperty('_bsontype');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue