T extends Entry<T> -> T type error fix

This commit is contained in:
2025-03-05 19:47:59 -05:00
parent 9856b138df
commit b7babb665e
3 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
import { type Entry } from "./main"
import { type Files } from "./collection"
interface Wrap<T extends Entry<T>> {
interface Wrap<T> {
readonly result: T,
readonly index: number
}
function wrap_result<T extends Entry<T>>(result: T, index: number): Wrap<T> {
function wrap_result<T>(result: T, index: number): Wrap<T> {
return { result: result, index: index }
}