alepha 0.11.4 → 0.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/queue/redis.d.ts CHANGED
@@ -1 +1,29 @@
1
- export * from '@alepha/queue-redis';
1
+ import * as _alepha_core0 from "alepha";
2
+ import { Static } from "alepha";
3
+ import { QueueProvider } from "alepha/queue";
4
+ import { RedisProvider } from "alepha/redis";
5
+ import * as typebox0 from "typebox";
6
+
7
+ //#region src/providers/RedisQueueProvider.d.ts
8
+ declare const envSchema: typebox0.TObject<{
9
+ REDIS_QUEUE_PREFIX: typebox0.TString;
10
+ }>;
11
+ declare class RedisQueueProvider implements QueueProvider {
12
+ protected readonly env: Static<typeof envSchema>;
13
+ protected readonly redisProvider: RedisProvider;
14
+ prefix(queue: string): string;
15
+ push(queue: string, message: string): Promise<void>;
16
+ pop(queue: string): Promise<string | undefined>;
17
+ }
18
+ //#endregion
19
+ //#region src/index.d.ts
20
+ /**
21
+ * Plugin for Alepha Queue that provides Redis queue capabilities.
22
+ *
23
+ * @see {@link RedisQueueProvider}
24
+ * @module alepha.queue.redis
25
+ */
26
+ declare const AlephaQueueRedis: _alepha_core0.Service<_alepha_core0.Module<{}>>;
27
+ //#endregion
28
+ export { AlephaQueueRedis, RedisQueueProvider };
29
+ //# sourceMappingURL=index.d.ts.map