diff --git a/api/@ohos.resourceManager.d.ts b/api/@ohos.resourceManager.d.ts index 55fe1e882ca6968e90400ae8c748bf78dbb5af1d..e3adf351d788eabd25c545c4c9063a219247774f 100644 --- a/api/@ohos.resourceManager.d.ts +++ b/api/@ohos.resourceManager.d.ts @@ -199,7 +199,7 @@ export interface AsyncCallback { * @since 6 * @FAModelOnly */ -export function getResourceManager(callback: AsyncCallback); +export function getResourceManager(callback: AsyncCallback): void; /** * Obtains the ResourceManager object of the specified application. @@ -209,7 +209,7 @@ export function getResourceManager(callback: AsyncCallback); * @since 6 * @FAModelOnly */ -export function getResourceManager(bundleName: string, callback: AsyncCallback); +export function getResourceManager(bundleName: string, callback: AsyncCallback): void; /** * Obtains the ResourceManager object of the current application. @@ -243,7 +243,7 @@ export interface ResourceManager { * @param callback Indicates the asynchronous callback used to return the obtained character string. * @since 6 */ - getString(resId: number, callback: AsyncCallback); + getString(resId: number, callback: AsyncCallback): void; /** * Obtains string resources associated with a specified resource ID in Promise mode. @@ -261,7 +261,7 @@ export interface ResourceManager { * @param callback Indicates the asynchronous callback used to return the obtained array of character strings. * @since 6 */ - getStringArray(resId: number, callback: AsyncCallback>); + getStringArray(resId: number, callback: AsyncCallback>): void; /** * Obtains the array of character strings corresponding to a specified resource ID in Promise mode. @@ -279,7 +279,7 @@ export interface ResourceManager { * @param callback Indicates the asynchronous callback used to return the obtained media file content. * @since 6 */ - getMedia(resId: number, callback: AsyncCallback); + getMedia(resId: number, callback: AsyncCallback): void; /** * Obtains the content of the media file corresponding to a specified resource ID in Promise mode. @@ -298,7 +298,7 @@ export interface ResourceManager { * resource. * @since 6 */ - getMediaBase64(resId: number, callback: AsyncCallback); + getMediaBase64(resId: number, callback: AsyncCallback): void; /** * Obtains the Base64 code of the image resource corresponding to the specified resource ID in Promise mode. @@ -315,7 +315,7 @@ export interface ResourceManager { * @param callback Indicates the asynchronous callback used to return the obtained device capability. * @since 6 */ - getDeviceCapability(callback: AsyncCallback); + getDeviceCapability(callback: AsyncCallback): void; /** * Obtains the device capability in Promise mode. @@ -332,7 +332,7 @@ export interface ResourceManager { * configuration. * @since 6 */ - getConfiguration(callback: AsyncCallback); + getConfiguration(callback: AsyncCallback): void; /** * Obtains the device configuration in Promise mode. @@ -352,7 +352,7 @@ export interface ResourceManager { * string represented by the ID string corresponding to the specified number. * @since 6 */ - getPluralString(resId: number, num: number, callback: AsyncCallback); + getPluralString(resId: number, num: number, callback: AsyncCallback): void; /** * Obtains the singular-plural character string represented by the ID string corresponding to @@ -373,7 +373,7 @@ export interface ResourceManager { * @param callback Indicates the asynchronous callback used to return the raw file resource. * @since 8 */ - getRawFile(path: string, callback: AsyncCallback); + getRawFile(path: string, callback: AsyncCallback): void; /** * Obtains the raw file resource corresponding to the specified resource path in Promise mode. @@ -391,7 +391,7 @@ export interface ResourceManager { * @param callback Indicates the asynchronous callback used to return the raw file resource descriptor. * @since 8 */ - getRawFileDescriptor(path: string, callback: AsyncCallback); + getRawFileDescriptor(path: string, callback: AsyncCallback): void; /** * Obtains the raw file resource descriptor corresponding to the specified resource path in Promise mode.