Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
uki00a committed Dec 7, 2024
1 parent f455df7 commit 8decf1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experimental/web_streams_connection/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
* @experimental **NOTE**: This is an unstable module.
*/
import { kUnstableCreateProtocol } from "../../internal/symbols.ts";
import type { RedisConnectOptions } from "../../redis.ts";
import type { Redis, RedisConnectOptions } from "../../redis.ts";
import { connect as _connect } from "../../redis.ts";
import { Protocol } from "../../protocol/web_streams/mod.ts";

function createProtocol(conn: Deno.Conn) {
return new Protocol(conn);
}

export function connect(options: RedisConnectOptions) {
export function connect(options: RedisConnectOptions): Promise<Redis> {
return _connect({
...options,
[kUnstableCreateProtocol]: createProtocol,
Expand Down

0 comments on commit 8decf1e

Please sign in to comment.