Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/tpy/mod.ts>TpyKV#get

🔑 A strongly typed Pylon API client.
Latest
method TpyKV.prototype.get
import { TpyKV } from "https://deno.land/x/tpy@v1.0.0-RC/mod.ts";

Gets a key's value - returning the value or undefined.

Type Parameters

optional
T extends Json = Json

The return type of the function to a given Json type.

Parameters

key: string

The key to get.

Returns

Promise<T | undefined>