UNPKG

@decaf-ts/core

Version:

Core persistence module for the decaf framework

12 lines (11 loc) 639 B
/** * @description Specifies which persistence adapter flavor a model should use * @summary This decorator applies metadata to a model class to indicate which persistence adapter flavor * should be used when performing database operations on instances of the model. The flavor is a string * identifier that corresponds to a registered adapter configuration. * @param {string} flavour - The identifier of the adapter flavor to use * @return {Function} A decorator function that can be applied to a model class * @function uses * @category Class Decorators */ export declare function uses(flavour: string): (original: any) => void;