1/* 2 * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * @file 18 * @kit FormKit 19 */ 20 21/** 22 * interface of formBindingData. 23 * 24 * @namespace formBindingData 25 * @syscap SystemCapability.Ability.Form 26 * @since 8 27 * @deprecated since 9 28 * @useinstead ohos.app.form.formBindingData/formBindingData 29 */ 30declare namespace formBindingData { 31 /** 32 * Create an FormBindingData instance. 33 * 34 * @param { Object | string } [obj] - Indicates the FormBindingData instance data. 35 * @returns { FormBindingData } Returns the {@link FormBindingData} instance. 36 * @syscap SystemCapability.Ability.Form 37 * @since 8 38 * @deprecated since 9 39 * @useinstead ohos.app.form.formBindingData/formBindingData#createFormBindingData 40 */ 41 function createFormBindingData(obj?: Object | string): FormBindingData; 42 43 /** 44 * Defines the createFormBindingData result interface. 45 * 46 * @typedef FormBindingData 47 * @syscap SystemCapability.Ability.Form 48 * @since 8 49 * @deprecated since 9 50 * @useinstead ohos.app.form.formBindingData/formBindingData#FormBindingData 51 */ 52 interface FormBindingData { 53 /** 54 * The data to be displayed on the js card. Can be a string in Object or json format that 55 * contains several key-value pairs. 56 * 57 * @type { Object } 58 * @syscap SystemCapability.Ability.Form 59 * @since 8 60 * @deprecated since 9 61 * @useinstead ohos.app.form.formBindingData/formBindingData#FormBindingData 62 */ 63 data: Object; 64 } 65} 66export default formBindingData; 67