Doubt, I don't think you can instantiate a generic function without calling it
You need a wrapping type and a cast or something
I would test it but not on my laptop now
I remember TS releasing a feature where this is possible
For example this: /** @type {(...args: Parameters<typeof sqlite.get>) => sqlite.get<{ count: number }(...args)} */
Обсуждают сегодня