From fe9905ebed902cc4ea75700e589390f1a6a321a9 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 27 Nov 2023 17:46:10 -0500 Subject: Remove interface keywords --- types/ext/cache-map.d.ts | 4 ++-- types/ext/dictionary-database.d.ts | 9 +++++---- types/ext/task-accumulator.d.ts | 4 ++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/types/ext/cache-map.d.ts b/types/ext/cache-map.d.ts index a4b8bb1a..0af7109a 100644 --- a/types/ext/cache-map.d.ts +++ b/types/ext/cache-map.d.ts @@ -15,9 +15,9 @@ * along with this program. If not, see . */ -export interface Node { +export type Node = { key: K | null; value: V | null; previous: Node | null; next: Node | null; -} +}; diff --git a/types/ext/dictionary-database.d.ts b/types/ext/dictionary-database.d.ts index 06a246e8..6569f76b 100644 --- a/types/ext/dictionary-database.d.ts +++ b/types/ext/dictionary-database.d.ts @@ -23,17 +23,18 @@ export type DatabaseId = { id: number; // Automatic database primary key }; -export interface MediaDataBase { +export type MediaDataBase = { dictionary: string; path: string; mediaType: string; width: number; height: number; content: TContentType; -} +}; + +export type MediaDataArrayBufferContent = MediaDataBase; -export interface MediaDataArrayBufferContent extends MediaDataBase {} -export interface MediaDataStringContent extends MediaDataBase {} +export type MediaDataStringContent = MediaDataBase; export type Media = {index: number} & MediaDataBase; diff --git a/types/ext/task-accumulator.d.ts b/types/ext/task-accumulator.d.ts index 772949f6..f02d449b 100644 --- a/types/ext/task-accumulator.d.ts +++ b/types/ext/task-accumulator.d.ts @@ -15,7 +15,7 @@ * along with this program. If not, see . */ -export interface Task { +export type Task = { data: V; stale: boolean; -} +}; -- cgit v1.2.3