From 7084dd9c282165e4496d2fe2f0554f8afa77772e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=A4mmerle?= Date: Sat, 23 Apr 2016 18:01:46 +0300 Subject: [PATCH] allow other than string for state (#9067) also objects are allowed (as in the official Hapi.js Cookie Tutorial: http://hapijs.com/tutorials/cookies) --- hapi/hapi.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hapi/hapi.d.ts b/hapi/hapi.d.ts index 65cc044178..9962dd6c62 100644 --- a/hapi/hapi.d.ts +++ b/hapi/hapi.d.ts @@ -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;