method IStorage.put
IStorage.put(
path: string,
data: Uint8Array,
): Promise<void>

Stores an object.

Parameters

path: string

Object path/key

Object bytes

optional
options: PutObjectOptions

Object attributes to record with the bytes. Optional, so an existing two-argument call is unchanged; see PutObjectOptions for which providers persist them.

Return Type

Promise<void>

Usage

import { type IStorage } from "common/src/index.ts";