core/lib/tern_from_ts/defs/cookie.json.tmp
2017-05-14 13:22:31 +02:00

24 lines
541 B
Plaintext

{
"CookieSerializeOptions": {
"encode": "fn(val: string)",
"path": "string",
"expires": "Date",
"maxAge": "number",
"domain": "string",
"secure": "bool",
"httpOnly": "bool"
},
"CookieParseOptions": {
"decode": "fn(val: string)"
},
"CookieStatic": {
"serialize": "fn(name: string, val: string, options?: CookieSerializeOptions) -> string",
"parse": "fn(str: string, options?: CookieParseOptions) -> ret"
},
"cookie": "cookie",
"!name": "cookie.d.ts",
"!define": {
"ret": {}
}
}