nestjsplus / cookies

Decorators for Managing Cookies with NestJS
MIT License
35 stars 11 forks source link

Wrong type in ClearCookies parameter #2

Closed kirit0s closed 4 years ago

kirit0s commented 4 years ago
export declare function ClearCookies(...cookies: string[] | undefined): (target: any, propertyKey: any, descriptor: any) => void;
 error TS2370: A rest parameter must be of an array type.

...cookies (rest parameter) can not be undefined.

johnbiundo commented 4 years ago

Fixed with https://github.com/nestjsplus/cookies/pull/1