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

x/tpy/mod.ts>default#getNamespaceItems

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

Gets all the namespace items under the given deployment ID.

Type Parameters

T

The type of the value object inside KV.GET.ItemsFlattened.

Parameters

namespace: string

The namespace to look under.

optional
deploymentID: string

The deployment ID to look under. If empty, the function will use the set Tpy.deploymentID in the class.

Returns

Promise<KV.GET.ItemsFlattened<T> | undefined>