From 2ab9e757f2939c09a1748608410d47eb9ff399fc Mon Sep 17 00:00:00 2001
From: Tom-Rune Bornholdt
Date: Thu, 1 Dec 2022 22:55:18 +0100
Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20fix=20types?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../types/src/lib/api/Tournament/roundStageStructure.view.ts | 1 -
libs/types/src/lib/pagination.types.ts | 5 +++++
libs/types/src/lib/public-api.ts | 1 +
3 files changed, 6 insertions(+), 1 deletion(-)
create mode 100644 libs/types/src/lib/pagination.types.ts
diff --git a/libs/types/src/lib/api/Tournament/roundStageStructure.view.ts b/libs/types/src/lib/api/Tournament/roundStageStructure.view.ts
index 4c671c7a3..ccde85ef9 100644
--- a/libs/types/src/lib/api/Tournament/roundStageStructure.view.ts
+++ b/libs/types/src/lib/api/Tournament/roundStageStructure.view.ts
@@ -7,7 +7,6 @@ export interface RoundStageStructureView {
name: string | null;
number: number;
countMatches: number;
- number: number;
type: RoundType;
}
diff --git a/libs/types/src/lib/pagination.types.ts b/libs/types/src/lib/pagination.types.ts
new file mode 100644
index 000000000..1622fdaa7
--- /dev/null
+++ b/libs/types/src/lib/pagination.types.ts
@@ -0,0 +1,5 @@
+import { PaginationView } from './api';
+
+export interface Paginated extends PaginationView {
+ items: T[];
+}
diff --git a/libs/types/src/lib/public-api.ts b/libs/types/src/lib/public-api.ts
index b1c13e734..2515447b8 100644
--- a/libs/types/src/lib/public-api.ts
+++ b/libs/types/src/lib/public-api.ts
@@ -1 +1,2 @@
export * from './api';
+export * from './pagination.types';