diff --git a/api/@ohos.data.fileAccess.d.ts b/api/@ohos.data.fileAccess.d.ts index a5d191c8ce30c027dd9058e4d1e9eb9439785b3f..8c97e5212b4d2c3f8816cf6056f0c2e2f7cc23e4 100644 --- a/api/@ohos.data.fileAccess.d.ts +++ b/api/@ohos.data.fileAccess.d.ts @@ -14,9 +14,9 @@ */ import { AsyncCallback, Callback } from "./basic"; -import { Want } from './ability/want'; +import Want from './@ohos.application.Want'; import Context from './application/Context'; -import Filter from '@ohos.fileio' +import { Filter } from './@ohos.fileio'; /** * This module provides the capability to access user public files. @@ -74,7 +74,7 @@ declare namespace fileAccess { * @param mode Indicates the mode of the file. * @param size Indicates the size of the file. * @param mtime Indicates the mtime of the file. - * @param mimetype Indicates the mimetype of the file. + * @param mimeType Indicates the mimeType of the file. */ interface FileInfo { /** @@ -106,7 +106,7 @@ declare namespace fileAccess { * @type {string} * @readonly */ - mimetype: string; + mimeType: string; /** * List files in the current directory. @@ -217,6 +217,7 @@ declare namespace fileAccess { * @since 9 * @syscap SystemCapability.FileManagement.UserFileService * @StageModelOnly + * @systemapi */ enum OPENFLAGS { /** file is openFile only_read */ diff --git a/api/@ohos.fileExtensionInfo.d.ts b/api/@ohos.fileExtensionInfo.d.ts index d016f74bc52af58ac158def2e5bc16b1992e198b..4d7685ac10ba69341942999500fa0a2d335028b6 100644 --- a/api/@ohos.fileExtensionInfo.d.ts +++ b/api/@ohos.fileExtensionInfo.d.ts @@ -46,8 +46,8 @@ declare namespace fileExtensionInfo { * @StageModelOnly */ namespace DeviceFlag { - const SUPPORTS_READ = 1; - const SUPPORTS_WRITE = 1 << 1; + const SUPPORTS_READ = 0b1; + const SUPPORTS_WRITE = 0b10; } /** @@ -58,10 +58,10 @@ declare namespace fileExtensionInfo { * @StageModelOnly */ namespace DocumentFlag { - const REPRESENTS_FILE = 1; - const REPRESENTS_DIR = 1 << 1; - const SUPPORTS_READ = 1 << 2; - const SUPPORTS_WRITE = 1 << 3; + const REPRESENTS_FILE = 0b1; + const REPRESENTS_DIR = 0b10; + const SUPPORTS_READ = 0b100; + const SUPPORTS_WRITE = 0b1000; } } diff --git a/api/@ohos.fileio.d.ts b/api/@ohos.fileio.d.ts index e13dae4b53d4765a96485a94704bd981a2d218a3..4b4cf3f6644916c0d8b8b7d100ff649adbfb6e4e 100644 --- a/api/@ohos.fileio.d.ts +++ b/api/@ohos.fileio.d.ts @@ -84,7 +84,6 @@ declare namespace fileIO { export { writeSync }; export { Dir }; export { Dirent }; - export { Filter }; export { ReadOut }; export { Stat }; export { Stream }; @@ -1156,7 +1155,7 @@ declare interface Dirent { isSymbolicLink(): boolean; } -declare interface Filter { +export type Filter = { /** * @type {Array} * @syscap SystemCapability.FileManagement.File.FileIO