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
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/express, @types/express-session
Credits
These definitions were written by Mikael Brevik.