diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-11-27 17:46:10 -0500 | 
|---|---|---|
| committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-11-27 17:46:10 -0500 | 
| commit | fe9905ebed902cc4ea75700e589390f1a6a321a9 (patch) | |
| tree | 8bddf42a981f1897346558f64e01114f9fd89bb6 | |
| parent | 29317da4ea237557e1805a834913dad73c51ed8a (diff) | |
Remove interface keywords
| -rw-r--r-- | types/ext/cache-map.d.ts | 4 | ||||
| -rw-r--r-- | types/ext/dictionary-database.d.ts | 9 | ||||
| -rw-r--r-- | 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 <https://www.gnu.org/licenses/>.   */ -export interface Node<K, V> { +export type Node<K, V> = {      key: K | null;      value: V | null;      previous: Node<K, V> | null;      next: Node<K, V> | 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<TContentType = unknown> { +export type MediaDataBase<TContentType = unknown> = {      dictionary: string;      path: string;      mediaType: string;      width: number;      height: number;      content: TContentType; -} +}; + +export type MediaDataArrayBufferContent = MediaDataBase<ArrayBuffer>; -export interface MediaDataArrayBufferContent extends MediaDataBase<ArrayBuffer> {} -export interface MediaDataStringContent extends MediaDataBase<string> {} +export type MediaDataStringContent = MediaDataBase<string>;  export type Media<T extends (ArrayBuffer | string) = ArrayBuffer> = {index: number} & MediaDataBase<T>; 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 <https://www.gnu.org/licenses/>.   */ -export interface Task<V> { +export type Task<V> = {      data: V;      stale: boolean; -} +}; |