diff --git a/api/@ohos.file.statvfs.d.ts b/api/@ohos.file.statvfs.d.ts index ceadd105343efd2fb43134452e9bc7305e2e82d6..a6d01c8370fb246e2bd19d63c3ec3b222a4c3871 100644 --- a/api/@ohos.file.statvfs.d.ts +++ b/api/@ohos.file.statvfs.d.ts @@ -62,7 +62,7 @@ declare namespace statfs { * Get the number of free bytes on the specified path. * * @param { string } path - path - * @returns { Promise } return Promise + * @returns { Promise } return Promise * @throws { BusinessError } 13900002 - No such file or directory * @throws { BusinessError } 13900004 - Interrupted system call * @throws { BusinessError } 13900005 - I/O error @@ -81,7 +81,7 @@ declare namespace statfs { * @since 20 * @arkts 1.1&1.2 */ - function getFreeSize(path: string): Promise; + function getFreeSize(path: string): Promise; /** * Get the number of free bytes on the specified path. @@ -108,7 +108,7 @@ declare namespace statfs { * Get the number of free bytes on the specified path. * * @param { string } path - path - * @param { AsyncCallback } [callback] - callback + * @param { AsyncCallback } [callback] - callback * @throws { BusinessError } 13900002 - No such file or directory * @throws { BusinessError } 13900004 - Interrupted system call * @throws { BusinessError } 13900005 - I/O error @@ -127,7 +127,7 @@ declare namespace statfs { * @since 20 * @arkts 1.1&1.2 */ - function getFreeSize(path: string, callback: AsyncCallback): void; + function getFreeSize(path: string, callback: AsyncCallback): void; /** * Get the number of free bytes on the specified path with sync interface. @@ -154,7 +154,7 @@ declare namespace statfs { * Get the number of free bytes on the specified path with sync interface. * * @param { string } path - path - * @returns { number } return the number of free bytes on the specified path + * @returns { long } return the number of free bytes on the specified path * @throws { BusinessError } 13900002 - No such file or directory * @throws { BusinessError } 13900004 - Interrupted system call * @throws { BusinessError } 13900005 - I/O error @@ -173,7 +173,7 @@ declare namespace statfs { * @since 20 * @arkts 1.1&1.2 */ - function getFreeSizeSync(path: string): number; + function getFreeSizeSync(path: string): long; /** * Get the number of total bytes on the specified path. @@ -200,7 +200,7 @@ declare namespace statfs { * Get the number of total bytes on the specified path. * * @param { string } path - path - * @returns { Promise } return Promise + * @returns { Promise } return Promise * @throws { BusinessError } 13900002 - No such file or directory * @throws { BusinessError } 13900004 - Interrupted system call * @throws { BusinessError } 13900005 - I/O error @@ -219,7 +219,7 @@ declare namespace statfs { * @since 20 * @arkts 1.1&1.2 */ - function getTotalSize(path: string): Promise; + function getTotalSize(path: string): Promise; /** * Get the number of total bytes on the specified path. @@ -246,7 +246,7 @@ declare namespace statfs { * Get the number of total bytes on the specified path. * * @param { string } path - path - * @param { AsyncCallback } [callback] - callback + * @param { AsyncCallback } [callback] - callback * @throws { BusinessError } 13900002 - No such file or directory * @throws { BusinessError } 13900004 - Interrupted system call * @throws { BusinessError } 13900005 - I/O error @@ -265,7 +265,7 @@ declare namespace statfs { * @since 20 * @arkts 1.1&1.2 */ - function getTotalSize(path: string, callback: AsyncCallback): void; + function getTotalSize(path: string, callback: AsyncCallback): void; /** * Get the number of total bytes on the specified path with sync interface. @@ -292,7 +292,7 @@ declare namespace statfs { * Get the number of total bytes on the specified path with sync interface. * * @param { string } path - path - * @returns { number } return the number of total bytes + * @returns { long } return the number of total bytes * @throws { BusinessError } 13900002 - No such file or directory * @throws { BusinessError } 13900004 - Interrupted system call * @throws { BusinessError } 13900005 - I/O error @@ -311,7 +311,7 @@ declare namespace statfs { * @since 20 * @arkts 1.1&1.2 */ - function getTotalSizeSync(path: string): number; + function getTotalSizeSync(path: string): long; } -export default statfs; +export default statfs; \ No newline at end of file