Skip to content

StoreSet

@tsed/core

Usage

typescript
import { StoreSet } from "@tsed/core";

See /packages/core/src/decorators/storeSet.ts.

Overview

ts
function StoreSet(key: any, value: any): Function;

Description

Creates a decorator that sets a key-value pair in the target's Store metadata.

Uses {@link Store.set} internally to directly set the provided value (no merging).

Released under the MIT License.