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 16// generated from recipes.rst 17export const cookBookRefToFixTitle: Map<number, string> = new Map([ 18 [1, 'Replace property name with identifier'], 19 [3, 'Replace with \'private\' modifier'], 20 [5, 'Replace with let'], 21 [16, 'Combine static block statements into one static block'], 22 [25, 'Replace with field declaration'], 23 [29, 'Replace with dot notation'], 24 [34, 'Add type annotation'], 25 [37, 'Replace with \'new Regexp()\' stdlib API call'], 26 [38, 'Add interface definition'], 27 [40, 'Replace with interface'], 28 [46, 'Convert to arrow function'], 29 [53, 'Replace to \'as\' expression'], 30 [69, 'Split into separate assignments'], 31 [71, 'Split expression around \',\' operator'], 32 [74, 'Split into separate declarations'], 33 [79, 'Remove type annotation'], 34 [90, 'Annotate return type'], 35 [113, 'Combine enum declarations'], 36 [153, 'Add \'Sendable\' decorator'], 37 [171, 'Add type annotation'], 38 [177, 'Add \'Sendable\' decorator'], 39 [180, 'Remove the decorator'], 40 [189, 'Add type annotations to numerical variables'], 41 [192, 'Use "undefined" instead "void"'], 42 [193, 'Replace with arrow function'], 43 [209, 'Transform "number" to "int"'], 44 [251, 'Transform "!!" to "$$()"'], 45 [252, 'Transform "$$" to "$$()"'], 46 [253, '"$value" transform to "this.value"'], 47 [254, '"@Extend" transform to function with receiver'], 48 [256, '"@Styles" transform to function with receiver'], 49 [257, '"@AnimatableExtend" transform to function with receiver'], 50 [258, 'Add "@Observed" decorator'], 51 [259, 'Add UI Interface Import'], 52 [260, '"@Entry" annotaion fixed'], 53 [263, '"@Provide" annotation fixed'], 54 [275, 'Custom layout need add decorator'], 55 [281, '"@Prop" transform to "@PropRef"'], 56 [282, '"@StorageProp" transform to "@StoragePropRef"'], 57 [283, '"@LocalStorageProp" transform to "@LocalStoragePropRef"'], 58 [300, 'Replace calling method of the TS-like `Function` type'], 59 [330, 'Convert import named objects from JS to ESValue'], 60 [332, 'Using the ESValue interface to access properties'], 61 [334, 'Call typeOf function'], 62 [335, 'Call toNumber function to convert'], 63 [338, 'Replace with library function call'], 64 [339, 'Using \'ESValue\' interface call'], 65 [341, 'Create JS objects using instantite'], 66 [358, 'Replace missing attribute'], 67 [359, '"@LocalBuilder" transform to "@Builder"'], 68 [381, 'StateStyles needs arrow function block'] 69]); 70