UNPKG

@lakutata/core

Version:

Lakutata Framework Core

10 lines (9 loc) 673 B
import { AnySchema } from 'yup/lib/schema'; export declare const Return: (returnSchema: AnySchema, options?: { strict?: boolean; stripUnknown?: boolean; }) => (target: Object, propertyKey: string, descriptor: TypedPropertyDescriptor<(...args: any[]) => any | Promise<any>>) => TypedPropertyDescriptor<(...args: any[]) => any | Promise<any>>; export declare const Accept: (argumentSchemas: AnySchema | AnySchema[], options?: { strict?: boolean; stripUnknown?: boolean; }) => (target: Object, propertyKey: string, descriptor: TypedPropertyDescriptor<(...args: any[]) => any | Promise<any>>) => TypedPropertyDescriptor<(...args: any[]) => any | Promise<any>>;