File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
1
// Type definitions for ngKookes 0.2.0
2
2
// Project: https://github.com/voronianski/ngKookies
3
- // Definitions by: Martin McWhorter https://github.com/martinmcwhorter
3
+ // Definitions by: Martin McWhorter < https://github.com/martinmcwhorter>
4
4
// Definitions: https://github.com/borisyankov/DefinitelyTyped
5
5
6
6
declare module angular . kookies {
7
-
7
+
8
8
type Options = {
9
- expires ?: number | Date ,
9
+ expires ?: number | Date ,
10
10
path ?: string ,
11
11
domain ?: string ,
12
12
secure ?: boolean
13
13
} ;
14
-
14
+
15
15
interface IKookiesService {
16
-
16
+
17
17
set ( name : string , value : string , optopns ?: Options ) : void ;
18
18
get ( ) : any ;
19
19
get ( name : string ) : any ;
20
20
get ( name :string , converter : any ) : any ;
21
21
get < T > ( name :string , converter : any ) : T ;
22
- remove ( name : string , options ?: Options ) : boolean ;
22
+ remove ( name : string , options ?: Options ) : boolean ;
23
23
}
24
-
25
- type Config = { raw ?: boolean , json ?: boolean }
26
-
24
+
25
+ type Config = { raw ?: boolean , json ?: boolean }
26
+
27
27
interface IKookiesProvider {
28
-
28
+
29
29
config : Config ;
30
30
setConfig ( config : Config ) : void ;
31
31
defaults : Options ;
32
32
setDefaults ( options : Options ) : void ;
33
33
}
34
- }
34
+ }
You can’t perform that action at this time.
0 commit comments