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

x/hex/src/mod.ts>data.Repository

An ecosystem delivering practices, philosophy and portability.
Go to Latest
interface data.Repository
Re-export
import { type data } from "https://deno.land/x/hex@0.5.15/src/mod.ts";
const { Repository } = data;

Type Parameters

optional
T = unknown

Methods

get(id: string): Promise<T | undefined>
getAll(): Promise<T[]>
add<R = T>(data: R): Promise<string>
update<R = T>(id: string, data: R): Promise<void>
replace<R = T>(id: string, data: R): Promise<void>
remove(id: string): Promise<void>