mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
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:
committed by
Masahiro Wakame
parent
24ea8d373a
commit
7084dd9c28
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user