windows: 11
node: 20.16.0
modules: es modules
typescript: 5.5.4
check-disk-space: 3.4.0
This expression is not callable. Type 'typeof import("c:/node_modules/check-disk-space/dist/check-disk-space")' has no call signatures.
try to call it in one of my function but it doesnt works
`export const checkDisk = async (req: Request, res: Response) => {
try {
const drives = await checkDiskSpace()
} catch (error: any) {
res.status(500).json({ error: error });
}
}`
windows: 11
node: 20.16.0
modules: es modules
typescript: 5.5.4
check-disk-space: 3.4.0
This expression is not callable. Type 'typeof import("c:/node_modules/check-disk-space/dist/check-disk-space")' has no call signatures.try to call it in one of my function but it doesnt works
`export const checkDisk = async (req: Request, res: Response) => {
try {
const drives = await checkDiskSpace()
} catch (error: any) {
res.status(500).json({ error: error });
}
}`