修改unknown为Object类型

Signed-off-by: humeng <humeng13@huawei.com>
This commit is contained in:
humeng 2024-08-22 15:48:37 +08:00
parent 9bc7006813
commit 48c7470ff9

View File

@ -111,7 +111,7 @@ export declare class NavPushPathHelper {
*
* @param { string } moduleName - Module name
* @param { string } name - Indicates the name of the route page to be pushed.
* @param { unknown } param - Indicates the detailed parameter of the route page to be pushed.
* @param { Object } param - Indicates the detailed parameter of the route page to be pushed.
* @param { boolean } [animated] - Indicates whether the transition is animated.
* @returns { Promise<void> } The promise returned by the function.
* @throws { BusinessError } 300001 - hsp silent install fail.
@ -119,7 +119,7 @@ export declare class NavPushPathHelper {
* @atomicservice
* @since 12
*/
pushPathByName(moduleName: string, name: string, param: unknown, animated?: boolean): Promise<void>;
pushPathByName(moduleName: string, name: string, param: Object, animated?: boolean): Promise<void>;
/**
* Pushes the specified route page into the stack.