forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeteor-persistent-session.d.ts
26 lines (21 loc) · 1.25 KB
/
meteor-persistent-session.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Type definitions for u2622:persistent-session
// Project: https://github.com/okgrow/meteor-persistent-session
// Definitions by: Robbie Van Gorkom <https://github.com/vangorra>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../meteor/meteor.d.ts" />
declare namespace Session {
function setTemp(key: string, value: string | number | boolean | any /** Null **/ | any /** Undefined **/): boolean;
function setPersistent(key: string, value: string | number | boolean | any /** Null **/ | any /** Undefined **/): boolean;
function setAuth(key: string, value: string | number | boolean | any /** Null **/ | any /** Undefined **/): boolean;
function setDefaultTemp(key: string, value: EJSONable | any /** Undefined **/): void;
function setDefaultPersistent(key: string, value: EJSONable | any /** Undefined **/): void;
function setDefaultAuth(key: string, value: EJSONable | any /** Undefined **/): void;
function makeTemp(key: string) : void;
function makePersistent(key: string) : void;
function makeAuth(key: string) : void;
function clear() : void;
function clear(key: string) : void;
function clearTemp() : void;
function clearPersistent() : void;
function clearAuth() : void;
}