diff --git a/interfaces/kits/js/src/mod_statvfs/statvfs_napi.cpp b/interfaces/kits/js/src/mod_statvfs/statvfs_napi.cpp index 937cf7684efcbe047d83110dface74159c6377f0..24e853f637a282e4e9d75f2a31938dc145271a29 100644 --- a/interfaces/kits/js/src/mod_statvfs/statvfs_napi.cpp +++ b/interfaces/kits/js/src/mod_statvfs/statvfs_napi.cpp @@ -23,7 +23,9 @@ napi_value StatvfsExport(napi_env env, napi_value exports) { static napi_property_descriptor desc[] = { DECLARE_NAPI_FUNCTION("getFreeSize", GetFreeSize), + DECLARE_NAPI_FUNCTION("getFreeSizeSync", GetFreeSizeSync), DECLARE_NAPI_FUNCTION("getTotalSize", GetTotalSize), + DECLARE_NAPI_FUNCTION("getTotalSizeSync", GetTotalSizeSync), }; NAPI_CALL(env, napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc)); return exports;