From 6e1b7a4cb4f5be1099955512efb59f5e5ddb34b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E7=A5=A5=5F=E6=88=90=E9=83=BD?= <1334196450@qq.com> Date: Fri, 10 Jan 2025 10:38:29 +0800 Subject: [PATCH] Update operators.ts hello, there are some unused code. realm: Realm is not used in the following code ```typescript export type Operator = (source: NodeRef, realm: Realm) => NodeRef; ``` So i remove it. --- src/operators.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operators.ts b/src/operators.ts index 689aa2b..d2072a6 100644 --- a/src/operators.ts +++ b/src/operators.ts @@ -6,7 +6,7 @@ import type { NodeRef, Realm } from './realm' * @typeParam Out - The type of values that the resulting node will emit. * @category Operators */ -export type Operator = (source: NodeRef, realm: Realm) => NodeRef +export type Operator = (source: NodeRef) => NodeRef /** * Shorter alias for {@link Operator}, to avoid extra long type signatures.