Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkDiskSpace() This expression is not callable. #31

Open
themuaz97 opened this issue Aug 29, 2024 · 0 comments
Open

checkDiskSpace() This expression is not callable. #31

themuaz97 opened this issue Aug 29, 2024 · 0 comments

Comments

@themuaz97
Copy link

themuaz97 commented Aug 29, 2024

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 });
}
}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant