summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts/array.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frontend/src/scripts/array.ts')
-rw-r--r--packages/frontend/src/scripts/array.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/frontend/src/scripts/array.ts b/packages/frontend/src/scripts/array.ts
index c9a146e707..082703a450 100644
--- a/packages/frontend/src/scripts/array.ts
+++ b/packages/frontend/src/scripts/array.ts
@@ -1,4 +1,10 @@
-import { EndoRelation, Predicate } from './relation';
+/*
+ * SPDX-FileCopyrightText: syuilo and other misskey contributors
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+
+type EndoRelation<T> = (a: T, b: T) => boolean;
+type Predicate<T> = (x: T) => boolean;
/**
* Count the number of elements that satisfy the predicate