0.1.8 • Published 6 months ago

@types/redis-scripto v0.1.8

Weekly downloads
67
License
MIT
Repository
github
Last release
6 months ago

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.

0.1.8

6 months ago

0.1.7

7 months ago

0.1.6

7 months ago

0.1.5

2 years ago

0.1.4

4 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago