Skip to content

StoreFn

@tsed/core

Usage

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

See /packages/core/src/types/decorators/storeFn.ts.

Overview

ts
function StoreFn(fn: (store: Store, parameters: DecoratorParameters) => void): Function;

Description

Create a store correctly configured from the parameters given by the decorator. The fn can return a decorator that will be initialized with the parameters (target, propertyKey, descriptor).

Released under the MIT License.