File tree 3 files changed +15
-14
lines changed
3 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 1
-
2
-
3
- // Based on https://github.com/js-coder/cookie.js/blob/gh-pages/tests/spec.js
4
-
5
- import cookie = require( "cookiejs" ) ;
1
+ import cookie = require( "cookie_js" ) ;
6
2
7
3
cookie . set ( { a : '1' , b : '2' , c : '3' } ) ;
8
4
Original file line number Diff line number Diff line change 1
- // Type definitions for cookie.js v1.2.2
1
+ // Type definitions for cookie_js v1.2.2
2
2
// Project: https://github.com/florian/cookie.js
3
- // Definitions by: Boltmade <https://github.com/Boltmade >
3
+ // Definitions by: slawiko <https://github.com/slawiko >
4
4
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
+
6
+ declare module 'cookie_js' {
7
+ export = cookie ;
8
+ }
9
+
5
10
/**
6
- * Shortcut for cookie.get()
11
+ * https://github.com/DefinitelyTyped/DefinitelyTyped/pull/16025#issuecomment-295784660
7
12
*/
8
-
9
- export = cookie ;
10
- export as namespace cookie ;
13
+ declare module 'cookiejs' {
14
+ export = cookie ;
15
+ }
11
16
12
17
declare function cookie ( key : string , fallback ?: string ) : string ;
13
18
declare function cookie ( keys : string [ ] , fallback ?: string ) : string ;
Original file line number Diff line number Diff line change 6
6
],
7
7
"noImplicitAny" : true ,
8
8
"noImplicitThis" : true ,
9
- "strictNullChecks" : false ,
9
+ "strictNullChecks" : true ,
10
10
"baseUrl" : " ../" ,
11
11
"typeRoots" : [
12
12
" ../"
17
17
},
18
18
"files" : [
19
19
" index.d.ts" ,
20
- " cookiejs -tests.ts"
20
+ " cookie_js -tests.ts"
21
21
]
22
- }
22
+ }
You can’t perform that action at this time.
0 commit comments