Skip to content

silence

The silence helper is used to silence any errors:

import { silence } from "typesaurus";
// Ignore if postId doesn't exist
silence(
db.posts.update(postId, ($) => $.field("deletedAt").set($.serverDate())),
);