From b7babb665e54fe3d87e8c3fa084cf1f98b927dec Mon Sep 17 00:00:00 2001 From: rhpidfyre Date: Wed, 5 Mar 2025 19:47:59 -0500 Subject: [PATCH] `T extends Entry` -> `T` type error fix --- src/rt/rfwfs/collection.ts | 2 +- src/rt/rfwfs/index.ts | 4 ++-- src/rt/rfwfs/main.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rt/rfwfs/collection.ts b/src/rt/rfwfs/collection.ts index 7477352..1e9a405 100644 --- a/src/rt/rfwfs/collection.ts +++ b/src/rt/rfwfs/collection.ts @@ -2,7 +2,7 @@ import { type Entry } from "./main" import entry_search from "./index" -type Files = Entry[] +type Files> = Entry[] interface EntryCollectionManipulate> { pop: (file_name: string) => Entry | undefined, diff --git a/src/rt/rfwfs/index.ts b/src/rt/rfwfs/index.ts index 8a1b289..79b9bbd 100644 --- a/src/rt/rfwfs/index.ts +++ b/src/rt/rfwfs/index.ts @@ -1,11 +1,11 @@ import { type Entry } from "./main" import { type Files } from "./collection" -interface Wrap> { +interface Wrap { readonly result: T, readonly index: number } -function wrap_result>(result: T, index: number): Wrap { +function wrap_result(result: T, index: number): Wrap { return { result: result, index: index } } diff --git a/src/rt/rfwfs/main.ts b/src/rt/rfwfs/main.ts index ad9d1fe..1c5e6a0 100644 --- a/src/rt/rfwfs/main.ts +++ b/src/rt/rfwfs/main.ts @@ -11,7 +11,7 @@ const enum Permissions { none } -interface Entry { +interface Entry> { readonly name: string, readonly type: EntryType, readonly inner: T,