@decaf-ts/core
Version:
Core persistence module for the decaf framework
7 lines (6 loc) • 730 B
TypeScript
import type { ModelConstructor } from "@decaf-ts/decorator-validation";
export declare const create: () => (target: any, _propertyKey: string | symbol, descriptor: PropertyDescriptor) => PropertyDescriptor;
export declare const read: () => (target: any, _propertyKey: string | symbol, descriptor: PropertyDescriptor) => PropertyDescriptor;
export declare const update: () => (target: any, _propertyKey: string | symbol, descriptor: PropertyDescriptor) => PropertyDescriptor;
export declare const del: () => (target: any, _propertyKey: string | symbol, descriptor: PropertyDescriptor) => PropertyDescriptor;
export declare function service(key: string | ModelConstructor<any>): (target: any, prop?: any, descriptor?: any) => void;