1/* 2 * Copyright (c) 2025 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 17let GeneratedImportVar_1 = ESValue.load('./interop_import_js_compare_js'); 18let foo = GeneratedImportVar_1.getProperty('foo'); 19let m = GeneratedImportVar_1.getProperty('m'); 20let n = GeneratedImportVar_1.getProperty('n'); 21 22let a = foo.getProperty("a") 23let b = foo.getProperty("b") 24a > b 25a < b 26a >= b 27a <= b 28a = 1.0 29 30m.toNumber() > n.toNumber() 31m = 1.0 32 33let x: number = 1.0, y: number = 2.0; 34x > y; 35x < y; 36x >= y; 37x <= y; 38 39interface GeneratedObjectLiteralInterface_1 { 40 a: number; 41 b: number; 42} 43let bar: GeneratedObjectLiteralInterface_1 = { a: 1.0, b: 2.0 }; 44 45let x2: number = bar.a, y2: number = bar.b; 46x2 > y2; 47x2 < y2; 48x2 >= y2; 49x2 <= y2; 50 51foo.getProperty("a").toNumber() > foo.getProperty("b").toNumber();