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 cookBookMsg: string[] = []; 17export const cookBookTag: string[] = []; 18 19cookBookTag[1] = 20 'Objects with property names that are not identifiers are not supported (arkts-identifiers-as-prop-names)'; 21cookBookTag[2] = '"Symbol()" API is not supported (arkts-no-symbol)'; 22cookBookTag[3] = 'Private "#" identifiers are not supported (arkts-no-private-identifiers)'; 23cookBookTag[4] = 'Use unique names for types and namespaces. (arkts-unique-names)'; 24cookBookTag[5] = 'Use "let" instead of "var" (arkts-no-var)'; 25cookBookTag[6] = ''; 26cookBookTag[7] = ''; 27cookBookTag[8] = 'Use explicit types instead of "any", "unknown" (arkts-no-any-unknown)'; 28cookBookTag[9] = ''; 29cookBookTag[10] = ''; 30cookBookTag[11] = ''; 31cookBookTag[12] = ''; 32cookBookTag[13] = ''; 33cookBookTag[14] = 'Use "class" instead of a type with call signature (arkts-no-call-signatures)'; 34cookBookTag[15] = 'Use "class" instead of a type with constructor signature (arkts-no-ctor-signatures-type)'; 35cookBookTag[16] = 'Only one static block is supported (arkts-no-multiple-static-blocks)'; 36cookBookTag[17] = 'Indexed signatures are not supported (arkts-no-indexed-signatures)'; 37cookBookTag[18] = ''; 38cookBookTag[19] = 'Use inheritance instead of intersection types (arkts-no-intersection-types)'; 39cookBookTag[20] = ''; 40cookBookTag[21] = 'Type notation using "this" is not supported (arkts-no-typing-with-this)'; 41cookBookTag[22] = 'Conditional types are not supported (arkts-no-conditional-types)'; 42cookBookTag[23] = ''; 43cookBookTag[24] = ''; 44cookBookTag[25] = 'Declaring fields in "constructor" is not supported (arkts-no-ctor-prop-decls)'; 45cookBookTag[26] = ''; 46cookBookTag[27] = 'Construct signatures are not supported in interfaces (arkts-no-ctor-signatures-iface)'; 47cookBookTag[28] = 'Indexed access types are not supported (arkts-no-aliases-by-index)'; 48cookBookTag[29] = 'Indexed access is not supported for fields (arkts-no-props-by-index)'; 49cookBookTag[30] = 'Structural typing is not supported (arkts-no-structural-typing)'; 50cookBookTag[31] = ''; 51cookBookTag[32] = ''; 52cookBookTag[33] = ''; 53cookBookTag[34] = 'Type inference in case of generic function calls is limited (arkts-no-inferred-generic-params)'; 54cookBookTag[35] = ''; 55cookBookTag[36] = ''; 56cookBookTag[37] = 'RegExp literals are not supported (arkts-no-regexp-literals)'; 57cookBookTag[38] = 58 'Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)'; 59cookBookTag[39] = ''; 60cookBookTag[40] = 'Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)'; 61cookBookTag[41] = ''; 62cookBookTag[42] = ''; 63cookBookTag[43] = 'Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr-literals)'; 64cookBookTag[44] = ''; 65cookBookTag[45] = ''; 66cookBookTag[46] = 'Use arrow functions instead of function expressions (arkts-no-func-expressions)'; 67cookBookTag[47] = ''; 68cookBookTag[48] = ''; 69cookBookTag[49] = ''; 70cookBookTag[50] = 'Class literals are not supported (arkts-no-class-literals)'; 71cookBookTag[51] = 'Classes cannot be specified in "implements" clause (arkts-implements-only-iface)'; 72cookBookTag[52] = 'Reassigning object methods is not supported (arkts-no-method-reassignment)'; 73cookBookTag[53] = 'Only "as T" syntax is supported for type casts (arkts-as-casts)'; 74cookBookTag[54] = 'JSX expressions are not supported (arkts-no-jsx)'; 75cookBookTag[55] = 'Unary operators "+", "-" and "~" work only on numbers (arkts-no-polymorphic-unops)'; 76cookBookTag[56] = ''; 77cookBookTag[57] = ''; 78cookBookTag[58] = ''; 79cookBookTag[59] = '"delete" operator is not supported (arkts-no-delete)'; 80cookBookTag[60] = '"typeof" operator is allowed only in expression contexts (arkts-no-type-query)'; 81cookBookTag[61] = ''; 82cookBookTag[62] = ''; 83cookBookTag[63] = ''; 84cookBookTag[64] = ''; 85cookBookTag[65] = '"instanceof" operator is partially supported (arkts-instanceof-ref-types)'; 86cookBookTag[66] = '"in" operator is not supported (arkts-no-in)'; 87cookBookTag[67] = ''; 88cookBookTag[68] = ''; 89cookBookTag[69] = 'Destructuring assignment is not supported (arkts-no-destruct-assignment)'; 90cookBookTag[70] = ''; 91cookBookTag[71] = 'The comma operator "," is supported only in "for" loops (arkts-no-comma-outside-loops)'; 92cookBookTag[72] = ''; 93cookBookTag[73] = ''; 94cookBookTag[74] = 'Destructuring variable declarations are not supported (arkts-no-destruct-decls)'; 95cookBookTag[75] = ''; 96cookBookTag[76] = ''; 97cookBookTag[77] = ''; 98cookBookTag[78] = ''; 99cookBookTag[79] = 'Type annotation in catch clause is not supported (arkts-no-types-in-catch)'; 100cookBookTag[80] = '"for .. in" is not supported (arkts-no-for-in)'; 101cookBookTag[81] = ''; 102cookBookTag[82] = ''; 103cookBookTag[83] = 'Mapped type expression is not supported (arkts-no-mapped-types)'; 104cookBookTag[84] = '"with" statement is not supported (arkts-no-with)'; 105cookBookTag[85] = ''; 106cookBookTag[86] = ''; 107cookBookTag[87] = '"throw" statements cannot accept values of arbitrary types (arkts-limited-throw)'; 108cookBookTag[88] = ''; 109cookBookTag[89] = ''; 110cookBookTag[90] = 'Function return type inference is limited (arkts-no-implicit-return-types)'; 111cookBookTag[91] = 'Destructuring parameter declarations are not supported (arkts-no-destruct-params)'; 112cookBookTag[92] = 'Nested functions are not supported (arkts-no-nested-funcs)'; 113cookBookTag[93] = 'Using "this" inside stand-alone functions is not supported (arkts-no-standalone-this)'; 114cookBookTag[94] = 'Generator functions are not supported (arkts-no-generators)'; 115cookBookTag[95] = ''; 116cookBookTag[96] = 'Type guarding is supported with "instanceof" and "as" (arkts-no-is)'; 117cookBookTag[97] = ''; 118cookBookTag[98] = ''; 119cookBookTag[99] = 120 'It is possible to spread only arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)'; 121cookBookTag[100] = ''; 122cookBookTag[101] = ''; 123cookBookTag[102] = 'Interface can not extend interfaces with the same method (arkts-no-extend-same-prop)'; 124cookBookTag[103] = 'Declaration merging is not supported (arkts-no-decl-merging)'; 125cookBookTag[104] = 'Interfaces cannot extend classes (arkts-extends-only-class)'; 126cookBookTag[105] = ''; 127cookBookTag[106] = 'Constructor function type is not supported (arkts-no-ctor-signatures-funcs)'; 128cookBookTag[107] = ''; 129cookBookTag[108] = ''; 130cookBookTag[109] = ''; 131cookBookTag[110] = ''; 132cookBookTag[111] = 133 'Enumeration members can be initialized only with compile time expressions of the same type (arkts-no-enum-mixed-types)'; 134cookBookTag[112] = ''; 135cookBookTag[113] = '"enum" declaration merging is not supported (arkts-no-enum-merging)'; 136cookBookTag[114] = 'Namespaces cannot be used as objects (arkts-no-ns-as-obj)'; 137cookBookTag[115] = ''; 138cookBookTag[116] = 139 'Non-declaration statements in namespaces are not supported (single semicolons are considered as empty non-declaration statements) (arkts-no-ns-statements)'; 140cookBookTag[117] = ''; 141cookBookTag[118] = ''; 142cookBookTag[119] = ''; 143cookBookTag[120] = ''; 144cookBookTag[121] = '"require" and "import" assignment are not supported (arkts-no-require)'; 145cookBookTag[122] = ''; 146cookBookTag[123] = ''; 147cookBookTag[124] = ''; 148cookBookTag[125] = ''; 149cookBookTag[126] = '"export = ..." assignment is not supported (arkts-no-export-assignment)'; 150cookBookTag[127] = ''; 151cookBookTag[128] = 'Ambient module declaration is not supported (arkts-no-ambient-decls)'; 152cookBookTag[129] = 'Wildcards in module names are not supported (arkts-no-module-wildcards)'; 153cookBookTag[130] = 'Universal module definitions (UMD) are not supported (arkts-no-umd)'; 154cookBookTag[131] = ''; 155cookBookTag[132] = '"new.target" is not supported (arkts-no-new-target)'; 156cookBookTag[133] = ''; 157cookBookTag[134] = 'Definite assignment assertions are not supported (arkts-no-definite-assignment)'; 158cookBookTag[135] = ''; 159cookBookTag[136] = 'Prototype assignment is not supported (arkts-no-prototype-assignment)'; 160cookBookTag[137] = '"globalThis" is not supported (arkts-no-globalthis)'; 161cookBookTag[138] = 'Some of utility types are not supported (arkts-no-utility-types)'; 162cookBookTag[139] = 'Declaring properties on functions is not supported (arkts-no-func-props)'; 163cookBookTag[140] = '\'Function.bind\' is not supported (arkts-no-func-bind)'; 164cookBookTag[141] = ''; 165cookBookTag[142] = '"as const" assertions are not supported (arkts-no-as-const)'; 166cookBookTag[143] = 'Import assertions are not supported (arkts-no-import-assertions)'; 167cookBookTag[144] = 'Usage of standard library is restricted (arkts-limited-stdlib)'; 168cookBookTag[145] = 'Strict type checking is enforced (arkts-strict-typing)'; 169cookBookTag[146] = 'Switching off type checks with in-place comments is not allowed (arkts-strict-typing-required)'; 170cookBookTag[147] = 'No dependencies on TypeScript code are currently allowed (arkts-no-ts-deps)'; 171cookBookTag[148] = ''; 172cookBookTag[149] = 'Classes cannot be used as objects (arkts-no-classes-as-obj)'; 173cookBookTag[150] = '"import" statements after other statements are not allowed (arkts-no-misplaced-imports)'; 174cookBookTag[151] = 'Usage of \'ESValue\' type is restricted (arkts-limited-esobj)'; 175cookBookTag[152] = '\'Function.apply\', \'Function.call\' are not supported (arkts-no-func-apply-call)'; 176cookBookTag[153] = 'The inheritance for "Sendable" classes is limited (arkts-sendable-class-inheritance)'; 177cookBookTag[154] = 178 'Properties in "Sendable" classes and interfaces must have a Sendable data type (arkts-sendable-prop-types)'; 179cookBookTag[155] = 180 'Definite assignment assertion is not allowed in "Sendable" classes (arkts-sendable-definite-assignment)'; 181cookBookTag[156] = 182 'Type arguments of generic "Sendable" type must be a "Sendable" data type (arkts-sendable-generic-types)'; 183cookBookTag[157] = 'Only imported variables can be captured by "Sendable" class (arkts-sendable-imported-variables)'; 184cookBookTag[158] = 'Only "@Sendable" decorator can be used on "Sendable" class (arkts-sendable-class-decorator)'; 185cookBookTag[159] = 186 'Objects of "Sendable" type can not be initialized using object literal or array literal (arkts-sendable-obj-init)'; 187cookBookTag[160] = 188 'Computed property names are not allowed in "Sendable" classes and interfaces (arkts-sendable-computed-prop-name)'; 189cookBookTag[161] = 'Casting "Non-sendable" data to "Sendable" type is not allowed (arkts-sendable-as-expr)'; 190cookBookTag[162] = 191 'Importing a module for side-effects only is not supported in shared module (arkts-no-side-effects-imports)'; 192cookBookTag[163] = 'Only "Sendable" entities can be exported in shared module (arkts-shared-module-exports)'; 193cookBookTag[164] = '"export * from ..." is not allowed in shared module (arkts-shared-module-no-wildcard-export)'; 194cookBookTag[165] = 195 'Only "Sendable" classes and "Sendable" interfaces are allowed for importing from ets into ts file (arkts-no-ts-import-ets)'; 196cookBookTag[166] = 197 'In ts files, "Sendable" types cannot be used in implements and extends clauses (arkts-no-ts-sendable-type-inheritance)'; 198cookBookTag[167] = 199 'In sdk ts files, "Sendable" class and "Sendable" interface can not be exported (arkts-no-dts-sendable-type-export)'; 200cookBookTag[168] = 'In ts files, entities from ets files can not be re-exported (arkts-no-ts-re-export-ets)'; 201cookBookTag[169] = 202 'Namespace import is not allowed for importing from ets to ts file (arkts-no-namespace-import-in-ts-import-ets)'; 203cookBookTag[170] = 204 'Side effect import is not allowed for importing from ets to ts file (artkts-no-side-effect-import-in-ts-import-ets)'; 205cookBookTag[171] = 'Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)'; 206cookBookTag[172] = 207 'Only imported variables can be captured by "Sendable" function (arkts-sendable-function-imported-variables)'; 208cookBookTag[173] = 'Only "@Sendable" decorator can be used on "Sendable" function (arkts-sendable-function-decorator)'; 209cookBookTag[174] = 210 'Only "@Sendable" decorator can be used on "Sendable" typeAlias (arkts-sendable-typealias-decorator)'; 211cookBookTag[175] = 'Only "FunctionType" can declare "Sendable" typeAlias (arkts-sendable-typeAlias-declaration)'; 212cookBookTag[176] = 213 'Only "Sendable" function or "Sendable" typeAlias object can be assigned to "Sendable" typeAlias (arkts-sendable-function-assignment)'; 214cookBookTag[177] = 215 'When declaring "@Sendable" overloaded function, needs to add "@Sendable" decorator on each function (arkts-sendable-function-overload-decorator)'; 216cookBookTag[178] = 'The property of "Sendable" function is limited (arkts-sendable-function-property)'; 217cookBookTag[179] = 218 'Casting "Non-sendable" function to "Sendable" typeAlias is not allowed (arkts-sendable-function-as-expr)'; 219cookBookTag[180] = 220 'The "@Sendable" decorator can only be used on "class", "function" and "typeAlias" (arkts-sendable-decorator-limited)'; 221cookBookTag[181] = ''; 222cookBookTag[182] = 223 'Sendable functions and sendable typealias are not available when compatibleSdkVersionStage is lowering than beta3 of API12 (arkts-sendable-beta-compatible)'; 224cookBookTag[183] = 'Object literal properties can only contain name-value pairs (arkts-obj-literal-props)'; 225cookBookTag[184] = 'Optional methods are not supported (arkts-optional-methods)'; 226cookBookTag[185] = 'syntax for import type is disabled (arkts-import-types)'; 227cookBookTag[186] = '"new" expression with dynamic constructor type is not supported (arkts-no-dynamic-ctor-call)'; 228cookBookTag[187] = 229 'function "Math.pow()" behavior for ArkTS differs from Typescript version (arkts-math-pow-standard-diff)'; 230cookBookTag[189] = 'Numeric semantics is different for integer values (arkts-numeric-semantic)'; 231cookBookTag[190] = 'Stricter assignments into variables of function type (arkts-incompatible-function-types)'; 232cookBookTag[191] = 'ASON is not supported. (arkts-no-need-stdlib-ason)'; 233cookBookTag[192] = 'Type "void" has no instances.(arkts-limited-void-type)'; 234cookBookTag[193] = '"void" operator is not supported (arkts-no-void-operator)'; 235cookBookTag[198] = 'Class TS overloading is not supported(arkts-no-ts-overload)'; 236cookBookTag[199] = 'Sendable containers are not supported (arkts-no-need-stdlib-sendable-containers)'; 237cookBookTag[202] = 'Literal types are restricted(arkts-limited-literal-types)'; 238cookBookTag[203] = 'exponent opartions "**" and "**=" are disabled (arkts-no-exponent-op)'; 239cookBookTag[206] = '"debugger" is not supported (arkts-no-debugger)'; 240cookBookTag[207] = 'Special arguments object inside functions are not supported (arkts-no-arguments-obj)'; 241cookBookTag[208] = 'Tagged templates are not supported (arkts-no-tagged-templates)'; 242cookBookTag[209] = 'The index expression must be of a numeric type (arkts-array-index-expr-type)'; 243cookBookTag[210] = 244 'The switch expression type must be of type char, byte, short, int, long, string or enum (arkts-switch-expr)'; 245cookBookTag[211] = 'No two case constant expressions have identical values.(arkts-case-expr)'; 246cookBookTag[212] = 'The index expression must be zero or positive value.(arkts-array-index-negative)'; 247cookBookTag[213] = 'Class cannot have static codeblocks. (arkts-class-lazy-import)'; 248cookBookTag[214] = 'Objects have no constructor property in ArkTS1.2 (arkts-obj-no-constructor)'; 249cookBookTag[215] = 'Array bound not checked. (arkts-runtime-array-check)'; 250cookBookTag[222] = 'Import for side-effect only is prohibited.(arkts-no-side-effect-import)'; 251cookBookTag[232] = 'Lazy import is not supported(arkts-no-lazy-import)'; 252cookBookTag[233] = 'Dynamic import is not supported(arkts-no-dynamic-import)'; 253cookBookTag[234] = 'Decorators are not supported(arkts-no-ts-decorators)'; 254cookBookTag[235] = 'Avoid using union types (arkts-common-union-member-access)'; 255cookBookTag[236] = 'Method can\'t override filed in interface implemented (arkts-no-method-overriding-field)'; 256cookBookTag[237] = 'Array and tuple are different type(arkts-no-tuples-arrays)'; 257cookBookTag[238] = 'The static property has no initializer (arkts-class-static-initialization)'; 258cookBookTag[239] = 'This keyword cannot be used as identifiers (arkts-invalid-identifier)'; 259cookBookTag[251] = '"!!" for bidirectional data binding is not supported (arkui-no-!!-bidirectional-data-binding)'; 260cookBookTag[252] = '"$$" for bidirectional data binding is not supported (arkui-no-$$-bidirectional-data-binding)'; 261cookBookTag[253] = '"${variable}" for decorator binding is not supported (arkui-link-decorator-passing)'; 262cookBookTag[254] = '"@Extend" decorator is not supported (arkui-no-extend-decorator)'; 263cookBookTag[255] = 'Extends or implements expression are not supported(arkts-no-extends-expression)'; 264cookBookTag[256] = '"@Styles" decorator is not supported (arkui-no-styles-decorator)'; 265cookBookTag[257] = 266 '"@AnimatableExtend" decorator should be transformed to use receiver (arkui-animatableextend-use-receiver)'; 267cookBookTag[258] = 'Data observation needs to add "@Observed" (arkui-data-observation)'; 268cookBookTag[259] = 'The ArkUI interface should be imported before it is used (arkui-modular-interface)'; 269cookBookTag[260] = 'The "@Entry" annotation does not support dynamic parameters (arkui-entry-annotation-parameters)'; 270cookBookTag[262] = 'The makeObserved function is not supported (arkui-no-makeobserved-function)'; 271cookBookTag[263] = 272 'The "@Provide" annotation does not support dynamic parameters (arkui-provide-annotation-parameters)'; 273cookBookTag[265] = 'Direct inheritance of interop JS classes is not supported (arkts-interop-js2s-inherit-js-class)'; 274cookBookTag[266] = 'Direct usage of interop JS objects is not supported (arkts-interop-js2s-traverse-js-instance)'; 275cookBookTag[267] = 'Direct usage of interop JS functions is not supported (arkts-interop-js2s-js-call-static-function)'; 276cookBookTag[268] = 'Direct usage of interop JS objects is not supported (arkts-interop-js2s-condition-judgment)'; 277cookBookTag[269] = 278 'Direct usage of interop JS functions is not supported (arkts-interop-js2s-js-expand-static-instance)'; 279cookBookTag[270] = 'ArkTS1.2 cannot catch a non Error instance thrown from JS code (arkts-interop-js2s-js-exception)'; 280cookBookTag[274] = 281 'The subclass constructor must call the parent class\'s parametered constructor (arkts-subclass-must-call-super-constructor-with-args)'; 282cookBookTag[275] = 283 'The Custom component with custom layout capability needs to add the "@CustomLayout" decorator (arkui-custom-layout-need-add-decorator)'; 284cookBookTag[281] = '"@Prop" decorator is not supported (arkui-no-prop-decorator)'; 285cookBookTag[282] = '"@StorageProp" decorator is not supported (arkui-no-storageprop-decorator)'; 286cookBookTag[283] = '"@LocalStorageProp" decorator is not supported (arkui-no-localstorageprop-decorator)'; 287cookBookTag[284] = '"prop" function is not supported (arkui-no-prop-function)'; 288cookBookTag[285] = '"setAndProp" function is not supported (arkui-no-setandprop-function)'; 289cookBookTag[286] = 290 'Parameters decorated with "@Prop" need to call the specific method when receiving data to ensure deep copy of the data (arkui-prop-need-call-method-for-deep-copy)'; 291cookBookTag[300] = 'The function type should be explicit (arkts-no-ts-like-function-call)'; 292cookBookTag[301] = 'Importing from "oh module" requires specifying full path (arkts-ohmurl-full-path)'; 293cookBookTag[302] = 294 'Class type is not compatible with "Object" parameter in interop call (arkts-interop-d2s-static-object-on-dynamic-instance)'; 295cookBookTag[303] = 296 'Reflect API usage is not allowed in interop calls when an "Object" parameter receives a class instance (arkts-interop-d2s-static-reflect-on-dynamic-instance)'; 297cookBookTag[304] = 'Duplicate function name in namespace are not allowed (arkts-no-duplicate-function-name)'; 298cookBookTag[306] = 'Cannot access typescript types directly (arkts-interop-ts2s-static-access-ts-type)'; 299cookBookTag[307] = 'Trying to catch typescript errors is not permitted (arkts-interop-ts2s-ts-exception)'; 300cookBookTag[308] = 'Type "void" has no instances.(sdk-limited-void-type)'; 301cookBookTag[309] = 'API no longer supports optional methods (sdk-optional-methods)'; 302cookBookTag[310] = 303 'Properties in "Sendable" classes and interfaces must have a Sendable data type (sdk-no-sendable-prop-types)'; 304cookBookTag[311] = 'Construct signatures are not supported in interfaces.(sdk-ctor-signatures-iface)'; 305cookBookTag[312] = 'Indexed access is not supported for fields (sdk-no-props-by-index)'; 306cookBookTag[313] = 'Constructor types are not supported - use lambda functions instead. (sdk-constructor-funcs)'; 307cookBookTag[314] = 308 'Object property names must be valid identifiers.Single-quoted and hyphenated properties are not supported. (sdk-no-literal-as-property-name)'; 309cookBookTag[315] = 'API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicate-name)'; 310cookBookTag[316] = 'Using typeof as a type is not allowed in this API (sdk-type-query)'; 311cookBookTag[317] = '"use shared" is not supported (arkts-limited-stdlib-no-use-shared)'; 312cookBookTag[318] = '"use concurrent" is not supported (arkts-limited-stdlib-no-use-concurrent)'; 313cookBookTag[319] = 314 'Overridden method parameters and return types must respect type inheritance principles (arkts-method-inherit-rule)'; 315cookBookTag[321] = 'Import Concurrency is not required (arkts-limited-stdlib-no-import-concurrency)'; 316cookBookTag[322] = 'isConcurrent is not supported (arkts-limited-stdlib-no-support-isConcurrent)'; 317cookBookTag[323] = 'Direct export of interop JS objects is not supported (arkts-interop-js2s-export-js)'; 318cookBookTag[325] = 319 'Default parameters must be placed after mandatory parameters (arkts-default-args-behind-required-args)'; 320cookBookTag[326] = 'It is not allowed to create object literal in interop calls (arkts-interop-s2d-object-literal)'; 321cookBookTag[327] = 322 'Object literal not compatible with target union type. (arkts-interop-d2s-object-literal-no-ambiguity)'; 323cookBookTag[328] = 324 'Object literal cannot be directly assigned to class with a constructor. (arkts-interop-d2s-object-literal-no-args-constructor)'; 325cookBookTag[329] = 'Enum cannot get member name by member value (arkts-enum-no-props-by-index)'; 326cookBookTag[330] = 'Importing directly from "JS" module is not supported (arkts-interop-js2s-import-js)'; 327cookBookTag[331] = 'ArkTS directly call JS functions or parameters is not supported (arkts-interop-js2s-call-js-func)'; 328cookBookTag[332] = 'Properties of interop objects can\'t be accessed directly (arkts-interop-js2s-access-js-prop)'; 329cookBookTag[333] = 'Casting interop JS objects to primitive types is not allowed (arkts-interop-js2s-convert-js-type)'; 330cookBookTag[334] = 'The "typeof" expression can\'t be used with interop JS objects (arkts-interop-js2s-typeof-js-type)'; 331cookBookTag[335] = 'Interop object does not have property num (arkts-interop-js2s-unary-op)'; 332cookBookTag[336] = 'Binary operations on js objects (arkts-interop-js2s-binary-op)'; 333cookBookTag[337] = 334 'Importing data directly from the "JS" module for comparison is not supported (arkts-interop-js2s-compare-js-data)'; 335cookBookTag[338] = 336 '"JS" objects can\'t be used directly as operands of the equality operators (arkts-interop-js2s-equality-judgment)'; 337cookBookTag[339] = 'Interop objects can\'t be indexed directly (arkts-interop-js2s-access-js-index)'; 338cookBookTag[340] = '"Await" operator can\'t be used with interop objects (arkts-interop-js2s-await-js-promise)'; 339cookBookTag[341] = 'ArkTS directly instantiated JS objects is not supported (arkts-interop-js2s-create-js-instance)'; 340cookBookTag[342] = 341 'Calling methods of JS Object directly in interop is not allowed (arkts-interop-js2s-call-js-method)'; 342cookBookTag[343] = 343 'Usage of "instanceof" operator is not allowed with interop objects (arkts-interop-js2s-instanceof-js-type)'; 344cookBookTag[344] = 'Interop objects can\'t be incremented or decremented (arkts-interop-js2s-self-addtion-reduction)'; 345cookBookTag[345] = 'Using thisArgs as a type is not allowed in this API (arkts-builtin-thisArgs)'; 346cookBookTag[346] = 'Using "Symbol.iterator" is not allowed in this API (arkts-builtin-symbol-iterator)'; 347cookBookTag[347] = 'Not support propertydescriptor (arkts-builtin-no-property-descriptor)'; 348cookBookTag[348] = 'API is not support ctor signature and func (arkts-builtin-cotr)'; 349cookBookTag[349] = 'SharedArrayBuffer is not supported (arkts-no-need-stdlib-sharedArrayBuffer)'; 350cookBookTag[350] = 351 'The taskpool setCloneList interface is deleted from ArkTS1.2 (arkts-limited-stdlib-no-setCloneList)'; 352cookBookTag[351] = 353 'The taskpool setTransferList interface is deleted from ArkTS1.2 (arkts-limited-stdlib-no-setTransferList)'; 354cookBookTag[352] = 355 '1.2 Void cannot be combined. OnDestroy/onDisconnect (The return type of the method is now void | Promise) needs to be split into two interfaces. (sdk-ability-asynchronous-lifecycle)'; 356cookBookTag[355] = 'Usage of standard library is restricted(arkts-limited-stdlib-no-sendable-decorator)'; 357cookBookTag[356] = 'Usage of standard library is restricted(arkts-limited-stdlib-no-concurrent-decorator)'; 358cookBookTag[357] = 'Worker are not supported(arkts-no-need-stdlib-worker)'; 359cookBookTag[358] = 360 'Using "Object.getOwnPropertyNames" is not allowed in this API (arkts-builtin-object-getOwnPropertyNames))'; 361cookBookTag[359] = '"@LocalBuilder" Decorator is not supported (arkui-no-localbuilder-decorator)'; 362cookBookTag[370] = 'Sparse array is not supported in ArkTS1.2 (arkts-no-sparse-array)'; 363cookBookTag[371] = 'Enum elements cannot be types in ArkTS1.2 (arkts-no-enum-prop-as-type)'; 364cookBookTag[372] = 'Smart type differences (arkts-no-ts-like-smart-type)'; 365cookBookTag[373] = 'Array type is immutable in ArkTS1.2 (arkts-array-type-immutable)'; 366cookBookTag[374] = 'Primitive types are normalized with their boxed type (arkts-primitive-type-normalization)'; 367cookBookTag[375] = 'TS catch type are not supported (arkts-no-ts-like-catch-type)'; 368cookBookTag[376] = 'Not supporting comparison between number type and bigint type (arkts-numeric-bigint-compare)'; 369cookBookTag[377] = 370 'Non-decimal BigInt literals (0x/0o/0b) are not supported. Use decimal format instead (arkts-only-support-decimal-bigint-literal)'; 371cookBookTag[378] = 'Operator is not support (arkts-unsupport-operator)'; 372cookBookTag[381] = 373 'The code block passed to stateStyles needs to be an arrow function (arkui-statestyles-block-need-arrow-func)'; 374cookBookTag[382] = 375 'Promise<void>constructor only supports using resolve (undefined) (arkts-promise-with-void-type-need-undefined-as-resolve-arg)'; 376 377for (let i = 0; i <= cookBookTag.length; i++) { 378 cookBookMsg[i] = ''; 379} 380