I have a library "foo" that implements a function "bar" like this
declare const bar = (baz: string) => void
I want to override that type to be something different, like
declare const bar = (baz: number) = void
So I do this
declare module "foo" {
declare const bar = (baz: number) = void
}
But when I do this, I just end with a function overload and it allows both number and string to be passed.
How can I make that function be of the type I want to "override" without creating a function overload?