mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
fix ngkookies/ngkookies.d.ts header
This commit is contained in:
Vendored
+11
-11
@@ -1,34 +1,34 @@
|
||||
// Type definitions for ngKookes 0.2.0
|
||||
// Project: https://github.com/voronianski/ngKookies
|
||||
// Definitions by: Martin McWhorter https://github.com/martinmcwhorter
|
||||
// Definitions by: Martin McWhorter <https://github.com/martinmcwhorter>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module angular.kookies {
|
||||
|
||||
|
||||
type Options = {
|
||||
expires?: number|Date,
|
||||
expires?: number|Date,
|
||||
path?: string,
|
||||
domain?: string,
|
||||
secure?: boolean
|
||||
};
|
||||
|
||||
|
||||
interface IKookiesService {
|
||||
|
||||
|
||||
set(name: string, value: string, optopns?: Options): void;
|
||||
get(): any;
|
||||
get(name: string): any;
|
||||
get(name:string, converter: any): any;
|
||||
get<T>(name:string, converter: any): T;
|
||||
remove(name: string, options?: Options): boolean;
|
||||
remove(name: string, options?: Options): boolean;
|
||||
}
|
||||
|
||||
type Config = { raw?: boolean, json?: boolean }
|
||||
|
||||
|
||||
type Config = { raw?: boolean, json?: boolean }
|
||||
|
||||
interface IKookiesProvider {
|
||||
|
||||
|
||||
config: Config;
|
||||
setConfig(config: Config): void;
|
||||
defaults: Options;
|
||||
setDefaults(options: Options): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user