api lint 告警消除

Signed-off-by: 谢智宇 <xiezhiyu2@huawei.com>
This commit is contained in:
liule 2024-07-05 16:01:25 +08:00 committed by 谢智宇
parent 3135cc6cbf
commit 3f982ac32d
2 changed files with 40 additions and 1 deletions

View File

@ -528,6 +528,15 @@ declare namespace resourceManager {
* @atomicservice * @atomicservice
* @since 11 * @since 11
*/ */
/**
* Indicates the screen direction of the current device.
*
* @type { Direction }
* @syscap SystemCapability.Global.ResourceManager
* @crossplatform
* @atomicservice
* @since 12
*/
direction: Direction; direction: Direction;
/** /**
@ -551,6 +560,15 @@ declare namespace resourceManager {
* @atomicservice * @atomicservice
* @since 11 * @since 11
*/ */
/**
* Indicates the current system language, for example, zh-Hans-CN.
*
* @type { string }
* @syscap SystemCapability.Global.ResourceManager
* @crossplatform
* @atomicservice
* @since 12
*/
locale: string; locale: string;
/** /**
@ -652,6 +670,15 @@ declare namespace resourceManager {
* @atomicservice * @atomicservice
* @since 11 * @since 11
*/ */
/**
* Indicates the screen density of the current device.
*
* @type { ScreenDensity }
* @syscap SystemCapability.Global.ResourceManager
* @crossplatform
* @atomicservice
* @since 12
*/
screenDensity: ScreenDensity; screenDensity: ScreenDensity;
/** /**
@ -675,6 +702,15 @@ declare namespace resourceManager {
* @atomicservice * @atomicservice
* @since 11 * @since 11
*/ */
/**
* Indicates the type of the current device.
*
* @type { DeviceType }
* @syscap SystemCapability.Global.ResourceManager
* @crossplatform
* @atomicservice
* @since 12
*/
deviceType: DeviceType; deviceType: DeviceType;
} }

View File

@ -58,7 +58,8 @@ export interface RawFileDescriptor {
*/ */
/** /**
* rawfile descriptor * rawfile descriptor
* *
* @type { number }
* @syscap SystemCapability.Global.ResourceManager * @syscap SystemCapability.Global.ResourceManager
* @crossplatform * @crossplatform
* @atomicservice * @atomicservice
@ -82,6 +83,7 @@ export interface RawFileDescriptor {
/** /**
* the offset from where the raw file starts in the HAP * the offset from where the raw file starts in the HAP
* *
* @type { number }
* @syscap SystemCapability.Global.ResourceManager * @syscap SystemCapability.Global.ResourceManager
* @crossplatform * @crossplatform
* @atomicservice * @atomicservice
@ -105,6 +107,7 @@ export interface RawFileDescriptor {
/** /**
* the length of the raw file in the HAP * the length of the raw file in the HAP
* *
* @type { number }
* @syscap SystemCapability.Global.ResourceManager * @syscap SystemCapability.Global.ResourceManager
* @crossplatform * @crossplatform
* @atomicservice * @atomicservice