1# Copyright (c) 2025 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13isolated_declgen: 14- name: VARABLE_MUST_HAVE_EXPLICIT_TYPE_ANNOTATION_WITH_ISOLATED_DECL 15 id: 1 16 message: Variable must have an explicit type annotation when using isolated declaration. 17 18- name: PARAMETER_MUST_HAVE_EXPLICIT_TYPE_ANNOTATION_WITH_ISOLATED_DECL 19 id: 2 20 message: Parameter must have an explicit type annotation when using isolated declaration. 21 22- name: PROPERTY_MUST_HAVE_EXPLICIT_TYPE_ANNOTATION_WITH_ISOLATED_DECL 23 id: 3 24 message: Property must have an explicit type annotation when using isolated declaration. 25 26- name: OBJECTS_THAT_CONTAIN_SPREAD_ASSIGNMENTS_CANNOT_BE_INFERRED_WITH_ISOLATED_DECL 27 id: 4 28 message: Objects that contain spread assignments cannot be inferred with isolated declaration. 29 30- name: ONLY_CONST_ARRAYS_CAN_BE_INFERRED_WITH_ISOLATED_DECL 31 id: 5 32 message: Only const arrays can be inferred with isolated declaration. 33 34- name: DECLARATION_EMIT_FOR_THIS_PARAMETER_REQUIRES_IMPLICITLY_ADD_UNDEFINED_TO_ITS_TYPE_NOT_ALLOWED_IN_ISOLATED_DECL 35 id: 6 36 message: Declaration emit for this parameter requires implicitly adding undefined to its type, which is not allowed in isolated declaration. 37 38- name: DEFAULT_EXPORTS__CANNOT_BE_INFERRED_WITH_ISOLATED_DECL 39 id: 7 40 message: Cannot use array creation expression with type parameter. 41 42- name: FUNCTION_MUST_HAVE_AN_EXPLICIT_RETURN_TYPE_ANNOTATION_WITH_ISOLATED_DECL 43 id: 8 44 message: Function must have an explicit return type annotation when using isolated declaration. 45 46- name: METHOD_MUST_HAVE_AN_EXPLICIT_RETURN_TYPE_ANNOTATION_WITH_ISOLATED_DECL 47 id: 9 48 message: Method must have an explicit return type annotation when using isolated declaration.