diff --git a/api/application/Context.d.ts b/api/application/Context.d.ts index 1fff6d0033e7ec9b7d2cca345bfddc232e198df4..9d37efe5e3c849730ea9edc76b48b7b552329efa 100755 --- a/api/application/Context.d.ts +++ b/api/application/Context.d.ts @@ -142,7 +142,31 @@ export default class Context extends BaseContext { */ createBundleContext(bundleName: string): Context; - /** + /** + * Create a module context + * + * @since 9 + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @param moduleName Indicates the module name. + * @return application context + * @StageModelOnly + */ + createModuleContext(moduleName: string): Context; + + /** + * Create a module context + * + * @since 9 + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @systemapi hide for inner use. + * @param bundleName Indicates the bundle name. + * @param moduleName Indicates the module name. + * @return application context + * @StageModelOnly + */ + createModuleContext(bundleName: string, moduleName: string): Context; + + /** * Get application context * * @since 9