• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022-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
16export const JSValue: string = 'Any';
17export const ESObject: string = 'ESObject';
18export const KitPrefix: string[] = [];
19export const BuiltInType: string[] = ['Symbol'];
20export const ETSKeyword: string[] = ['Class', 'ESObject', 'MethodType'];
21export const UtilityTypes = [
22    'Capitalize',
23    'ConstructorParameters',
24    'Exclude',
25    'Extract',
26    'InstanceType',
27    'Lowercase',
28    'NonNullable',
29    'NoInfer',
30    'Omit',
31    'OmitThisParameter',
32    'Parameters',
33    'Pick',
34    'ReturnType',
35    'ThisParameterType',
36    'ThisType',
37    'Uncapitalize',
38    'Uppercase'
39];
40export const SpecificTypes = [
41    'AnyKeyword',
42    'ConditionalType',
43    'ConstructorType',
44    'FunctionType',
45    'IndexedAccessType',
46    'IndexSignature',
47    'IntersectionType',
48    'MappedType',
49    'ObjectLiteralExpression',
50    'SymbolKeyword',
51    'TemplateLiteralType',
52    'UnknownKeyword'
53];
54export const FINAL_CLASS: string[] = [
55    'ArgumentOutOfRangeException',
56    'ArrayIndexOutOfBoundsError',
57    'ArrayStoreError',
58    'ArrayType',
59    'ArrayValue',
60    'ArithmeticError',
61    'AtomicFlag',
62    'Boolean',
63    'BooleanType',
64    'BooleanValue',
65    'Byte',
66    'ByteType',
67    'ByteValue',
68    'CallBodyDefault',
69    'CallBodyFunction',
70    'CallBodyMethod',
71    'CallBodyErasedFunction',
72    'Char',
73    'CharType',
74    'CharValue',
75    'Class',
76    'ClassCastError',
77    'ClassType',
78    'ClassValue',
79    'Chrono',
80    'Console',
81    'Coroutine',
82    'CoroutineExtras',
83    'DebuggerAPI',
84    'Double',
85    'DoubleType',
86    'DoubleValue',
87    'EnumConstant',
88    'EnumType',
89    'Field',
90    'FieldCreator',
91    'FinalizableWeakRef',
92    'FinalizationRegistry',
93    'Float',
94    'FloatType',
95    'FloatValue',
96    'GC',
97    'IllegalArgumentException',
98    'InterfaceType',
99    'Int',
100    'IntIntValue',
101    'IntType',
102    'JSError',
103    'JSRuntime',
104    'JSValue',
105    'LambdaType',
106    'LambdaValue',
107    'Logger',
108    'Long',
109    'LongType',
110    'LongValue',
111    'Method',
112    'MethodCreator',
113    'MethodType',
114    'NegativeArraySizeError',
115    'NoDataException',
116    'NullType',
117    'NullValue',
118    'Parameter',
119    'ParameterCreator',
120    'Promise',
121    'Runtime',
122    'RuntimeException',
123    'Short',
124    'ShortType',
125    'ShortValue',
126    'String',
127    'StringBuilder',
128    'StringIndexOutOfBoundsError',
129    'StringType',
130    'StringValue',
131    'TupleType',
132    'Types',
133    'UnionCase',
134    'UnionType',
135    'UnsupportedOperationException',
136    'UndefinedType',
137    'UndefinedValue',
138    'Void',
139    'VoidType',
140    'VoidValue',
141    'WeakRef'
142];
143export const LIMIT_DECORATOR: string[] = ['Sendable', 'Concurrent'];
144