1.0.5 • Published 6 months ago
@types/connect-azuretables v1.0.5
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
// Type definitions for connect-azuretables 1.0
// Project: https://github.com/mike-goodwin/connect-azuretables
// Definitions by: Mikael Brevik <https://github.com/mikaelbr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
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: Thu, 08 Jul 2021 09:08:06 GMT
- Dependencies: @types/express, @types/express-session
- Global values: none
Credits
These definitions were written by Mikael Brevik.