Why the ts code below wrong?
type Bar<T> = { value: T }
function bar(options: { callback: <T>(data: Bar<T>) => void }) {}
bar({
callback(data: Bar<string>) {}
})
Why the ts code below wrong?
type Bar<T> = { value: T }
function bar(options: { callback: <T>(data: Bar<T>) => void }) {}
bar({
callback(data: Bar<string>) {}
})
Copyright © 2021 Jogjafile Inc.
