0.1.8 • Published 1 year ago
@types/redis-scripto v0.1.8
Installation
npm install --save @types/redis-scripto
Summary
This package contains type definitions for redis-scripto (https://github.com/arunoda/node-redis-scripto).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redis-scripto.
index.d.ts
// Type definitions for redis-scripto 0.1.3
// Project: https://github.com/arunoda/node-redis-scripto
// Definitions by: Seth Westphal <https://github.com/westy92>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as redis from 'redis';
declare class Scripto {
constructor(redisClient: redis.RedisClient);
eval(scriptName: string, keys: string[], args: any[], callback: (err: Error, result: any) => void): void;
evalSha(scriptName: string, keys: string[], args: any[], callback: (err: Error, result: any) => void): void;
load(scripts: Scripto.Scripts): void;
loadFromDir(scriptsDir: string): void;
loadFromFile(name: string, filepath: string): void;
run(scriptName: string, keys: string[], args: any[], callback: (err: Error, result: any) => void): void;
}
declare namespace Scripto {
export type Script = string;
export interface Scripts {
[scriptName: string]: Script;
}
}
export = Scripto;
Additional Details
- Last updated: Thu, 09 Dec 2021 09:01:25 GMT
- Dependencies: @types/redis
- Global values: none
Credits
These definitions were written by Seth Westphal.