From 8e2d47b2e882a9fb10e60c2ea0274a0fa54abb8f Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 20 Sep 2023 16:44:12 +0900 Subject: refactor --- packages/frontend/src/scripts/array.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/frontend/src/scripts/array.ts') diff --git a/packages/frontend/src/scripts/array.ts b/packages/frontend/src/scripts/array.ts index d83b001c87..082703a450 100644 --- a/packages/frontend/src/scripts/array.ts +++ b/packages/frontend/src/scripts/array.ts @@ -3,7 +3,8 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -import { EndoRelation, Predicate } from './relation.js'; +type EndoRelation = (a: T, b: T) => boolean; +type Predicate = (x: T) => boolean; /** * Count the number of elements that satisfy the predicate -- cgit v1.2.3-freya