1/* 2 * Copyright (c) 2024 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 16export class TestClass { 17 prop1: string = "123"; 18 prop2: number = 123; 19 objProp = { 20 innerProp2: "123" 21 } 22} 23 24let var1 = 1; 25let var2 = 2; 26 27export function foo() { 28 return 1; 29} 30 31namespace ns { 32 export let var3 = 1; 33 export function nsFunction() { 34 return 1; 35 } 36} 37 38interface TestInterface { 39 feature1: number; 40 feature2: string; 41} 42 43class TestClass2 { 44 prop4 = 123; 45 propObj = { 46 innerProp: "123" 47 }; 48} 49 50class TestClass3 { 51 exportProp1 = "123"; 52 exportPropObj = { 53 exportInnerProp: "234" 54 }; 55} 56 57export {var1, var2 as v2, ns as default, TestInterface, TestClass3 as t3}; 58 59export {outterElement1, outterElement2 as o2} from './filePath';