mirror of
https://github.com/misskey-dev/misskey
synced 2024-06-30 22:30:38 +02:00
14 lines
358 B
TypeScript
14 lines
358 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
declare module 'redis-lock' {
|
|
import type Redis from 'ioredis';
|
|
|
|
type Lock = (lockName: string, timeout?: number, taskToPerform?: () => Promise<void>) => void;
|
|
function redisLock(client: Redis.Redis, retryDelay: number): Lock;
|
|
|
|
export = redisLock;
|
|
}
|