Skip to main content
Deno 2 is finally here 🎉️
Learn more
class OnUpdateMod
implements OnUpdate
import { OnUpdateMod } from "https://deno.land/x/sptaki@1.2.0/services/mod/onUpdate/mod.ts";

Constructors

new
OnUpdateMod(onUpdateOverride: (timeSinceLastRun: number) => boolean, getRouteOverride: () => string)

Properties

private
getRouteOverride
private
onUpdateOverride

Methods

getRoute(): string
onUpdate(timeSinceLastRun: number): Promise<boolean>