How to make the function of a particular method be determined as a function rather than a quantity by idea?

the @ FIXME portion of the following code is judged to be just a function value

export function a() {}
export const b = function () {};
export const c = () => {};
export const d = (() => {return () => {}})(); // <== @FIXME;
export const A = { a, };
export const B = { b, } as {
    b: typeof b, // <== @FIXME
};

// all is func type // ---------------------

// know these is a func

console.log(a, b, c);
console.log(A.a);

// --------------------

// @FIXME but think these is a var with func value

console.log(d);
console.log(B.b);

Menu