Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/src/query/query.ts>docIsExpired

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
function docIsExpired
import { docIsExpired } from "https://deno.land/x/earthstar@v10.0.0-alpha.3/src/query/query.ts";

Return whether a document is expired or not

Type Parameters

FormatType extends string
DocType extends DocBase<FormatType>

Parameters

doc: DocType
optional
now: number