allow other than string for state (#9067)

also objects are allowed (as in the official Hapi.js Cookie Tutorial: http://hapijs.com/tutorials/cookies)
This commit is contained in:
Florian Hämmerle
2016-04-24 00:01:46 +09:00
committed by Masahiro Wakame
parent 24ea8d373a
commit 7084dd9c28
+1 -1
View File
@@ -304,7 +304,7 @@ declare module "hapi" {
response(result: any): Response;
/** Sets a cookie on the response */
state(name: string, value: string, options?: any): void;
state(name: string, value: any, options?: any): void;
/** Clears a cookie on the response */
unstate(name: string, options?: any): void;