
Security News
pnpm 10.16 Adds New Setting for Delayed Dependency Updates
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
@types/connect-redis
Advanced tools
TypeScript definitions for connect-redis
npm install --save @types/connect-redis
This package contains type definitions for connect-redis (https://npmjs.com/package/connect-redis).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect-redis.
/// <reference types="express" />
/// <reference types="express-session" />
/// <reference types="redis" />
declare module "connect-redis" {
import * as express from "express";
import * as session from "express-session";
import * as ioRedis from "ioredis";
import * as redis from "redis";
function s(options: (options?: session.SessionOptions) => express.RequestHandler): s.RedisStore;
namespace s {
type Client = redis.RedisClient | ioRedis.Redis | ioRedis.Cluster;
interface RedisStore extends session.Store {
new(options: RedisStoreOptions): RedisStore;
client: Client;
}
interface RedisStoreOptions {
client?: Client | undefined;
host?: string | undefined;
port?: number | undefined;
socket?: string | undefined;
url?: string | undefined;
ttl?: number | string | ((store: RedisStore, sess: session.SessionData, sid: string) => number) | undefined;
disableTTL?: boolean | undefined;
disableTouch?: boolean | undefined;
db?: number | undefined;
pass?: string | undefined;
prefix?: string | undefined;
unref?: boolean | undefined;
serializer?: Serializer | JSON | undefined;
logErrors?: boolean | ((error: string) => void) | undefined;
scanCount?: number | undefined;
}
interface Serializer {
stringify: Function;
parse: Function;
}
}
export = s;
}
These definitions were written by Xavier Stouder, Seth Butler, and Jip Sterk.
FAQs
TypeScript definitions for connect-redis
The npm package @types/connect-redis receives a total of 158,796 weekly downloads. As such, @types/connect-redis popularity was classified as popular.
We found that @types/connect-redis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.