diff --git a/en/application-dev/reference/apis/js-apis-data-preferences.md b/en/application-dev/reference/apis/js-apis-data-preferences.md index 964159792a1c87f4d0e1bec1493405c164a9500f..bc3d5fdfcf4b058a8f5f56b53213338d0da0fada 100644 --- a/en/application-dev/reference/apis/js-apis-data-preferences.md +++ b/en/application-dev/reference/apis/js-apis-data-preferences.md @@ -316,7 +316,7 @@ put(key: string, value: ValueType): Promise<void> Obtains the **Preferences** instance corresponding to the specified file, writes data to the **Preferences** instance using a **Preferences** API, and saves data to the file using **flush()** or **flushSync()**. -This method uses an asynchronous callback to return the result. +This method uses a promise to return the result. **System capability**: SystemCapability.DistributedDataManager.Preferences.Core @@ -383,7 +383,7 @@ has(key: string): Promise<boolean> Checks whether the **Preference** object contains data with a given key. -This method uses an asynchronous callback to return the result. +This method uses a promise to return the result. **System capability**: SystemCapability.DistributedDataManager.Preferences.Core @@ -502,7 +502,7 @@ flush(): Promise<void> Saves the modification of this object to the **Preferences** instance and synchronizes the modification to the file. -This method uses an asynchronous callback to return the result. +This method uses a promise to return the result. **System capability**: SystemCapability.DistributedDataManager.Preferences.Core @@ -555,7 +555,7 @@ clear(): Promise<void> Clears this **Preferences** object. -This method uses an asynchronous callback to return the result. +This method uses a promise to return the result. **System capability**: SystemCapability.DistributedDataManager.Preferences.Core