@creamapi/cream
Version:
Concise REST API Maker - An extension library for express to create REST APIs faster
11 lines (10 loc) • 534 B
TypeScript
import { Constructable } from '../..';
import { CookieOptions } from './Cookie';
/**
* This method is used to statically set a value of a cookie in the response
* @param cookieName the cookie name
* @param coookieValue the value associated with the cookie
* @param cookieOpt the options for the cookie
* @returns the decorator function for the class with the correct information
*/
export declare function SetCookie<T extends Constructable>(cookieName: string, coookieValue: string, cookieOpt: CookieOptions): (target: T) => T;