@types/meteor-persistent-session
TypeScript icon, indicating that this package has built-in type declarations

0.0.35 • Public • Published

Installation

npm install --save @types/meteor-persistent-session

Summary

This package contains type definitions for meteor-persistent-session (https://github.com/okgrow/meteor-persistent-session).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/meteor-persistent-session.

index.d.ts

/// <reference types="meteor" />

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;
}

Additional Details

Credits

These definitions were written by Robbie Van Gorkom.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/meteor-persistent-session

Weekly Downloads

53

Version

0.0.35

License

MIT

Unpacked Size

4.95 kB

Total Files

5

Last publish

Collaborators

  • types