mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
41 lines
1.5 KiB
TypeScript
41 lines
1.5 KiB
TypeScript
// Type definitions for Angular JS 1.4 (ngCookies module)
|
|
// Project: http://angularjs.org
|
|
// Definitions by: Diego Vilar <http://github.com/diegovilar>, Anthony Ciccarello <http://github.com/aciccarello>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
|
|
/// <reference path="angular.d.ts" />
|
|
|
|
declare module "angular-cookies" {
|
|
var _: string;
|
|
export = _;
|
|
}
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
// ngCookies module (angular-cookies.js)
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
declare module angular.cookies {
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
// CookieService
|
|
// see http://docs.angularjs.org/api/ngCookies.$cookies
|
|
///////////////////////////////////////////////////////////////////////////
|
|
interface ICookiesService {
|
|
[index: string]: any;
|
|
}
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
// CookieStoreService
|
|
// see http://docs.angularjs.org/api/ngCookies.$cookieStore
|
|
///////////////////////////////////////////////////////////////////////////
|
|
interface ICookiesService {
|
|
get(key: string): string;
|
|
getObject(key: string): any;
|
|
getAll(): any;
|
|
put(key: string, value: string, options?: any): void;
|
|
putObject(key: string, value: any, options?: any): void;
|
|
remove(key: string, options?: any): void;
|
|
}
|
|
|
|
}
|