It seems like I might be overlooking something, but is it possible to define a function with just one existing type?
type Fn = (x: number) => boolean // this cannot be changed
const arrowFn: Fn = (x) => {
return !x
}
// Is there a way to achieve this?
function normalFn: Fn (x) {
return !x
}