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

x/tpy/src/tpy.ts>Tpy#getNamespaceItems

🔑 A strongly typed Pylon API client.
Latest
method Tpy.prototype.getNamespaceItems
import { Tpy } from "https://deno.land/x/tpy@v1.0.0-RC/src/tpy.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>