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,