• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 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
16export interface Interface01 {
17    interfaceP1: number;
18    "interfaceP2": number;
19    ["interfaceP1"]: number;
20}
21
22export const Object01 ={
23    objectP1: 10,
24    "objectP2": 11,
25    ['objectP3']: 12,
26}
27
28export class class01 {
29    classP1;
30    11 = 4;
31    'classP2'= 3;
32    ['classP3'] =2;
33    constructor(public classP5 = 1, private classP6 = 2, protected classP7 = 3, readonly classP8 = { classP9 : 4 }) {
34        this.classP1 = {
35            classP10: 3
36        }
37    }
38    classP11 = class class02 {
39        classP12 = 3;
40    };
41    get classP13() {return 1}
42    set classP14(length) {}
43}
44
45export enum enum01 {
46    enumP1,
47    'enumP2',
48    ['enumP3'],
49}
50
51export type typeAlia01 = {
52    typeP1;
53    'typeP2';
54    ['typeP3'];
55}