
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
@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 118,798 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.