@types/connect-azuretables
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Installation

npm install --save @types/connect-azuretables

Summary

This package contains type definitions for connect-azuretables (https://github.com/mike-goodwin/connect-azuretables).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect-azuretables.

index.d.ts

import * as express from "express";
import * as session from "express-session";

declare function connectAzureTable(
    session: (options?: session.SessionOptions) => express.RequestHandler,
): connectAzureTable.AzureTableStoreFactory;

declare namespace connectAzureTable {
    interface AzureTableStoreFactory {
        create(options: AzureTableStoreOptions): AzureTableStore;
    }
    interface AzureTableStore extends session.Store {
        startBackgroundCleanUp(): void;
        cleanUp(): void;
        update(method: "SET" | "TOUCH", sid: string, session: session.SessionData, callback?: (err: any) => void): void;
    }
    interface AzureTableStoreOptions {
        logger?: ((message: string) => void) | undefined;
        errorLogger?: ((message: string) => void) | undefined;
        sessionTimeOut?: number | undefined; // sessionTimeOut in minutes
        overrideCron?: string | undefined; // cron job description
        storageAccount?: string | undefined;
        accessKey?: string | undefined;
        table?: string | undefined;
    }
}

export = connectAzureTable;

Additional Details

Credits

These definitions were written by Mikael Brevik.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/connect-azuretables

Weekly Downloads

5

Version

1.0.5

License

MIT

Unpacked Size

5.02 kB

Total Files

5

Last publish

Collaborators

  • types