mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
fix: linting errors
This commit is contained in:
parent
fab040385d
commit
18f00d08e9
30
types/node-redis-pubsub/index.d.ts
vendored
30
types/node-redis-pubsub/index.d.ts
vendored
@ -1,27 +1,23 @@
|
||||
// Type definitions for node-redis-pubsub 3.0.0
|
||||
// Type definitions for node-redis-pubsub 3.0
|
||||
// Project: https://github.com/louischatriot/node-redis-pubsub#readme
|
||||
// Definitions by: Rene Keijzer <https://github.com/renekeijzer>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
import * as redis from 'redis';
|
||||
|
||||
|
||||
|
||||
|
||||
import * as redis from 'redis';
|
||||
|
||||
declare function NRP(options:object) : NRP.NodeRedisPubSub;
|
||||
declare function NRP(options: object): NRP.NodeRedisPubSub;
|
||||
declare namespace NRP {
|
||||
function initClient(options:object) : NRP.NodeRedisPubSub;
|
||||
|
||||
function initClient(options: object): NodeRedisPubSub;
|
||||
class NodeRedisPubSub {
|
||||
constructor(options : object);
|
||||
getRedisClient(any:void): redis.RedisClient;
|
||||
on(channel:string, handler:Function, callback?:Function):Function;
|
||||
subscribe(channel:string, handler:Function, callback?:Function):Function;
|
||||
emit(channel:string, message:string) : any;
|
||||
publish(channel:string, message:string) : any;
|
||||
quit(any:void):void;
|
||||
end(any:void):void;
|
||||
constructor(options: object);
|
||||
getRedisClient(): redis.RedisClient;
|
||||
on(channel: string, handler: () => void, callback?: () => void): () => void;
|
||||
subscribe(channel: string, handler: () => void, callback?: () => void): () => void;
|
||||
emit(channel: string, message: string): void;
|
||||
publish(channel: string, message: string): void;
|
||||
quit(): void;
|
||||
end(): void;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,12 +1,5 @@
|
||||
{
|
||||
"name": "node-redis-pubsub",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "",
|
||||
"private":true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@types/redis": "^2.8.6"
|
||||
|
||||
1
types/node-redis-pubsub/tslint.json
Normal file
1
types/node-redis-pubsub/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user