How do I declare something to be an objectID

How do I declare id to an ObjectId in doSomethingById deps.ts
export { Bson, MongoClient, Database } from "https://deno.land/x/mongo/mod.ts";
export { Bson, MongoClient, Database } from "https://deno.land/x/mongo/mod.ts";
workerBee.ts
import { Bson} from "../deps.ts";


const id = new Bson.ObjectId();


function doSomethingById(id) : void{
let workers = [id ]
.....
}
import { Bson} from "../deps.ts";


const id = new Bson.ObjectId();


function doSomethingById(id) : void{
let workers = [id ]
.....
}
2 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
dan.the.discloser
thank you