type alias mongoose.UpdateQueryKnownOnlyimport { type mongoose } from "https://deno.land/x/mongoose@7.7.0/types/index.d.ts"; const { UpdateQueryKnownOnly } = mongoose; A more strict form of UpdateQuery that enforces updating only known top-level properties. ExamplesExample 1 function updateUser(_id: mongoose.Types.ObjectId, update: UpdateQueryKnownOnly<IUser>) { return User.updateOne({ _id }, update); } Type ParametersTdefinition: _UpdateQuery<T, { }>