Files
Andy 954ee278de Update TypeScript Versions to be at least as high as dependencies' versions (#21288)
* Update `TypeScript Version`s to be at least as high as dependencies' versions

* Run through again
2017-11-08 09:12:14 -08:00

29 lines
750 B
TypeScript

// Type definitions for restify-cookies 0.2
// Project: https://github.com/nathschmidt/restify-cookies
// Definitions by: weekens <https://github.com/weekens>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import * as restify from 'restify';
declare module 'restify' {
interface CookieOptions {
encode?: (input: string) => string; // tslint:disable-line:prefer-method-signature
maxAge?: number;
domain?: string;
path?: string;
expires?: Date;
httpOnly?: boolean;
secure?: boolean;
sameSite?: boolean|'lax'|'strict';
}
interface Request {
cookies: any;
}
interface Response {
setCookie(key: string, val: string, options?: CookieOptions): void;
}
}