typescript-closure-tools
Version:
Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files
1,468 lines (1,467 loc) • 86 kB
TypeScript
declare module ts {
interface Map<T> {
[index: string]: T;
}
function forEach<T, U>(array: T[], callback: (element: T) => U): U;
function contains<T>(array: T[], value: T): boolean;
function indexOf<T>(array: T[], value: T): number;
function filter<T>(array: T[], f: (x: T) => boolean): T[];
function map<T, U>(array: T[], f: (x: T) => U): U[];
function concatenate<T>(array1: T[], array2: T[]): T[];
function sum(array: any[], prop: string): number;
function binarySearch(array: number[], value: number): number;
function hasProperty<T>(map: Map<T>, key: string): boolean;
function getProperty<T>(map: Map<T>, key: string): T;
function isEmpty<T>(map: Map<T>): boolean;
function clone<T>(object: T): T;
function forEachValue<T, U>(map: Map<T>, callback: (value: T) => U): U;
function mapToArray<T>(map: Map<T>): T[];
var localizedDiagnosticMessages: Map<string>;
function createFileDiagnostic(file: SourceFile, start: number, length: number, message: DiagnosticMessage, ...args: any[]): Diagnostic;
function createCompilerDiagnostic(message: DiagnosticMessage, ...args: any[]): Diagnostic;
function chainDiagnosticMessages(details: DiagnosticMessageChain, message: DiagnosticMessage, ...args: any[]): DiagnosticMessageChain;
function flattenDiagnosticChain(file: SourceFile, start: number, length: number, diagnosticChain: DiagnosticMessageChain): Diagnostic;
function compareDiagnostics(d1: Diagnostic, d2: Diagnostic): number;
function deduplicateSortedDiagnostics(diagnostics: Diagnostic[]): Diagnostic[];
function normalizeSlashes(path: string): string;
function getRootLength(path: string): number;
var directorySeparator: string;
function normalizePath(path: string): string;
function getDirectoryPath(path: string): string;
function isUrl(path: string): boolean;
function isRootedDiskPath(path: string): boolean;
function getNormalizedPathComponents(path: string, currentDirectory: string): string[];
function getNormalizedPathFromPathCompoments(pathComponents: string[]): string;
function getRelativePathToDirectoryOrUrl(directoryPathOrUrl: string, relativeOrAbsolutePath: string, currentDirectory: string, isAbsolutePathAnUrl: boolean): string;
function getBaseFilename(path: string): string;
function combinePaths(path1: string, path2: string): string;
function fileExtensionIs(path: string, extension: string): boolean;
function getCanonicalFileName(fileName: string): string;
interface ObjectAllocator {
getNodeConstructor(kind: SyntaxKind): new() => Node;
getSymbolConstructor(): new(flags: SymbolFlags, name: string) => Symbol;
getTypeConstructor(): new(checker: TypeChecker, flags: TypeFlags) => Type;
getSignatureConstructor(): new(checker: TypeChecker) => Signature;
}
var objectAllocator: ObjectAllocator;
enum AssertionLevel {
None = 0,
Normal = 1,
Aggressive = 2,
VeryAggressive = 3,
}
module Debug {
function shouldAssert(level: AssertionLevel): boolean;
function assert(expression: any, message?: string, verboseDebugInfo?: () => string): void;
function fail(message?: string): void;
}
}
declare module ts {
var Diagnostics: {
Unknown_compiler_option_0: {
code: number;
category: DiagnosticCategory;
key: string;
};
File_0_not_found: {
code: number;
category: DiagnosticCategory;
key: string;
};
File_0_must_have_extension_ts_or_d_ts: {
code: number;
category: DiagnosticCategory;
key: string;
};
Unrecognized_escape_sequence: {
code: number;
category: DiagnosticCategory;
key: string;
};
Unexpected_character_0: {
code: number;
category: DiagnosticCategory;
key: string;
};
Missing_close_quote_character: {
code: number;
category: DiagnosticCategory;
key: string;
};
Identifier_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
_0_keyword_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
_0_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Identifier_expected_0_is_a_keyword: {
code: number;
category: DiagnosticCategory;
key: string;
};
Automatic_semicolon_insertion_not_allowed: {
code: number;
category: DiagnosticCategory;
key: string;
};
Trailing_comma_not_allowed: {
code: number;
category: DiagnosticCategory;
key: string;
};
Asterisk_Slash_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
public_or_private_modifier_must_precede_static: {
code: number;
category: DiagnosticCategory;
key: string;
};
Unexpected_token: {
code: number;
category: DiagnosticCategory;
key: string;
};
Catch_clause_parameter_cannot_have_a_type_annotation: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_rest_parameter_must_be_last_in_a_parameter_list: {
code: number;
category: DiagnosticCategory;
key: string;
};
Parameter_cannot_have_question_mark_and_initializer: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_required_parameter_cannot_follow_an_optional_parameter: {
code: number;
category: DiagnosticCategory;
key: string;
};
An_index_signature_cannot_have_a_rest_parameter: {
code: number;
category: DiagnosticCategory;
key: string;
};
An_index_signature_parameter_cannot_have_an_accessibility_modifier: {
code: number;
category: DiagnosticCategory;
key: string;
};
An_index_signature_parameter_cannot_have_a_question_mark: {
code: number;
category: DiagnosticCategory;
key: string;
};
An_index_signature_parameter_cannot_have_an_initializer: {
code: number;
category: DiagnosticCategory;
key: string;
};
An_index_signature_must_have_a_type_annotation: {
code: number;
category: DiagnosticCategory;
key: string;
};
An_index_signature_parameter_must_have_a_type_annotation: {
code: number;
category: DiagnosticCategory;
key: string;
};
An_index_signature_parameter_type_must_be_string_or_number: {
code: number;
category: DiagnosticCategory;
key: string;
};
extends_clause_already_seen: {
code: number;
category: DiagnosticCategory;
key: string;
};
extends_clause_must_precede_implements_clause: {
code: number;
category: DiagnosticCategory;
key: string;
};
Classes_can_only_extend_a_single_class: {
code: number;
category: DiagnosticCategory;
key: string;
};
implements_clause_already_seen: {
code: number;
category: DiagnosticCategory;
key: string;
};
Accessibility_modifier_already_seen: {
code: number;
category: DiagnosticCategory;
key: string;
};
_0_modifier_must_precede_1_modifier: {
code: number;
category: DiagnosticCategory;
key: string;
};
_0_modifier_already_seen: {
code: number;
category: DiagnosticCategory;
key: string;
};
_0_modifier_cannot_appear_on_a_class_element: {
code: number;
category: DiagnosticCategory;
key: string;
};
Interface_declaration_cannot_have_implements_clause: {
code: number;
category: DiagnosticCategory;
key: string;
};
super_invocation_cannot_have_type_arguments: {
code: number;
category: DiagnosticCategory;
key: string;
};
Only_ambient_modules_can_use_quoted_names: {
code: number;
category: DiagnosticCategory;
key: string;
};
Statements_are_not_allowed_in_ambient_contexts: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_function_implementation_cannot_be_declared_in_an_ambient_context: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_declare_modifier_cannot_be_used_in_an_already_ambient_context: {
code: number;
category: DiagnosticCategory;
key: string;
};
Initializers_are_not_allowed_in_ambient_contexts: {
code: number;
category: DiagnosticCategory;
key: string;
};
_0_modifier_cannot_appear_on_a_module_element: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_declare_modifier_cannot_be_used_with_an_interface_declaration: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_rest_parameter_cannot_be_optional: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_rest_parameter_cannot_have_an_initializer: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_set_accessor_must_have_exactly_one_parameter: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_set_accessor_cannot_have_an_optional_parameter: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_set_accessor_parameter_cannot_have_an_initializer: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_set_accessor_cannot_have_rest_parameter: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_get_accessor_cannot_have_parameters: {
code: number;
category: DiagnosticCategory;
key: string;
};
Modifiers_cannot_appear_here: {
code: number;
category: DiagnosticCategory;
key: string;
};
Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher: {
code: number;
category: DiagnosticCategory;
key: string;
};
Enum_member_must_have_initializer: {
code: number;
category: DiagnosticCategory;
key: string;
};
An_export_assignment_cannot_be_used_in_an_internal_module: {
code: number;
category: DiagnosticCategory;
key: string;
};
Ambient_enum_elements_can_only_have_integer_literal_initializers: {
code: number;
category: DiagnosticCategory;
key: string;
};
module_class_interface_enum_import_or_statement: {
code: number;
category: DiagnosticCategory;
key: string;
};
Unexpected_token_A_constructor_method_accessor_or_property_was_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
statement: {
code: number;
category: DiagnosticCategory;
key: string;
};
case_or_default_clause: {
code: number;
category: DiagnosticCategory;
key: string;
};
identifier: {
code: number;
category: DiagnosticCategory;
key: string;
};
call_construct_index_property_or_function_signature: {
code: number;
category: DiagnosticCategory;
key: string;
};
expression: {
code: number;
category: DiagnosticCategory;
key: string;
};
type_name: {
code: number;
category: DiagnosticCategory;
key: string;
};
property_or_accessor: {
code: number;
category: DiagnosticCategory;
key: string;
};
parameter: {
code: number;
category: DiagnosticCategory;
key: string;
};
type: {
code: number;
category: DiagnosticCategory;
key: string;
};
type_parameter: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_declare_modifier_cannot_be_used_with_an_import_declaration: {
code: number;
category: DiagnosticCategory;
key: string;
};
Invalid_reference_directive_syntax: {
code: number;
category: DiagnosticCategory;
key: string;
};
Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher: {
code: number;
category: DiagnosticCategory;
key: string;
};
An_accessor_cannot_be_declared_in_an_ambient_context: {
code: number;
category: DiagnosticCategory;
key: string;
};
_0_modifier_cannot_appear_on_a_constructor_declaration: {
code: number;
category: DiagnosticCategory;
key: string;
};
_0_modifier_cannot_appear_on_a_parameter: {
code: number;
category: DiagnosticCategory;
key: string;
};
Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement: {
code: number;
category: DiagnosticCategory;
key: string;
};
Type_parameters_cannot_appear_on_a_constructor_declaration: {
code: number;
category: DiagnosticCategory;
key: string;
};
Type_annotation_cannot_appear_on_a_constructor_declaration: {
code: number;
category: DiagnosticCategory;
key: string;
};
An_accessor_cannot_have_type_parameters: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_set_accessor_cannot_have_a_return_type_annotation: {
code: number;
category: DiagnosticCategory;
key: string;
};
An_index_signature_must_have_exactly_one_parameter: {
code: number;
category: DiagnosticCategory;
key: string;
};
_0_list_cannot_be_empty: {
code: number;
category: DiagnosticCategory;
key: string;
};
Type_parameter_list_cannot_be_empty: {
code: number;
category: DiagnosticCategory;
key: string;
};
Type_argument_list_cannot_be_empty: {
code: number;
category: DiagnosticCategory;
key: string;
};
Invalid_use_of_0_in_strict_mode: {
code: number;
category: DiagnosticCategory;
key: string;
};
with_statements_are_not_allowed_in_strict_mode: {
code: number;
category: DiagnosticCategory;
key: string;
};
delete_cannot_be_called_on_an_identifier_in_strict_mode: {
code: number;
category: DiagnosticCategory;
key: string;
};
Invalid_left_hand_side_in_for_in_statement: {
code: number;
category: DiagnosticCategory;
key: string;
};
continue_statement_can_only_be_used_within_an_enclosing_iteration_statement: {
code: number;
category: DiagnosticCategory;
key: string;
};
break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement: {
code: number;
category: DiagnosticCategory;
key: string;
};
Jump_target_not_found: {
code: number;
category: DiagnosticCategory;
key: string;
};
Jump_target_cannot_cross_function_boundary: {
code: number;
category: DiagnosticCategory;
key: string;
};
return_statement_must_be_contained_within_a_function_body: {
code: number;
category: DiagnosticCategory;
key: string;
};
Expression_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Type_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_constructor_implementation_cannot_be_declared_in_an_ambient_context: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_class_member_cannot_be_declared_optional: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: {
code: number;
category: DiagnosticCategory;
key: string;
};
Duplicate_identifier_0: {
code: number;
category: DiagnosticCategory;
key: string;
};
new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead: {
code: number;
category: DiagnosticCategory;
key: string;
};
Multiple_constructor_implementations_are_not_allowed: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_class_may_only_implement_another_class_or_interface: {
code: number;
category: DiagnosticCategory;
key: string;
};
get_and_set_accessor_must_have_the_same_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
Static_members_cannot_reference_class_type_parameters: {
code: number;
category: DiagnosticCategory;
key: string;
};
super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class: {
code: number;
category: DiagnosticCategory;
key: string;
};
The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
Variable_declarations_of_a_for_statement_cannot_use_a_type_annotation: {
code: number;
category: DiagnosticCategory;
key: string;
};
Variable_declarations_of_a_for_statement_must_be_of_types_string_or_any: {
code: number;
category: DiagnosticCategory;
key: string;
};
The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter: {
code: number;
category: DiagnosticCategory;
key: string;
};
The_left_hand_side_of_an_in_expression_must_be_of_types_any_string_or_number: {
code: number;
category: DiagnosticCategory;
key: string;
};
The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_get_accessor_must_return_a_value_or_consist_of_a_single_throw_statement: {
code: number;
category: DiagnosticCategory;
key: string;
};
Getter_and_setter_accessors_do_not_agree_in_visibility: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_or_consist_of_a_single_throw_statement: {
code: number;
category: DiagnosticCategory;
key: string;
};
Untyped_function_calls_may_not_accept_type_arguments: {
code: number;
category: DiagnosticCategory;
key: string;
};
The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter: {
code: number;
category: DiagnosticCategory;
key: string;
};
The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
Setters_cannot_return_a_value: {
code: number;
category: DiagnosticCategory;
key: string;
};
Invalid_left_hand_side_of_assignment_expression: {
code: number;
category: DiagnosticCategory;
key: string;
};
Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2: {
code: number;
category: DiagnosticCategory;
key: string;
};
All_symbols_within_a_with_block_will_be_resolved_to_any: {
code: number;
category: DiagnosticCategory;
key: string;
};
The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_property_or_indexer: {
code: number;
category: DiagnosticCategory;
key: string;
};
Overload_signatures_must_all_be_public_or_private: {
code: number;
category: DiagnosticCategory;
key: string;
};
Overload_signatures_must_all_be_exported_or_not_exported: {
code: number;
category: DiagnosticCategory;
key: string;
};
Overload_signatures_must_all_be_ambient_or_non_ambient: {
code: number;
category: DiagnosticCategory;
key: string;
};
Overload_signatures_must_all_be_optional_or_required: {
code: number;
category: DiagnosticCategory;
key: string;
};
this_cannot_be_referenced_in_constructor_arguments: {
code: number;
category: DiagnosticCategory;
key: string;
};
Value_of_type_0_is_not_callable_Did_you_mean_to_include_new: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_signature_with_an_implementation_cannot_use_a_string_literal_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
Interface_0_cannot_simultaneously_extend_types_1_and_2_Colon: {
code: number;
category: DiagnosticCategory;
key: string;
};
Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it: {
code: number;
category: DiagnosticCategory;
key: string;
};
super_cannot_be_referenced_in_constructor_arguments: {
code: number;
category: DiagnosticCategory;
key: string;
};
Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class: {
code: number;
category: DiagnosticCategory;
key: string;
};
Ambient_external_module_declaration_cannot_specify_relative_module_name: {
code: number;
category: DiagnosticCategory;
key: string;
};
Import_declaration_in_an_ambient_external_module_declaration_cannot_reference_external_module_through_relative_external_module_name: {
code: number;
category: DiagnosticCategory;
key: string;
};
Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference: {
code: number;
category: DiagnosticCategory;
key: string;
};
Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference: {
code: number;
category: DiagnosticCategory;
key: string;
};
Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference: {
code: number;
category: DiagnosticCategory;
key: string;
};
Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference: {
code: number;
category: DiagnosticCategory;
key: string;
};
Duplicate_identifier_i_Compiler_uses_i_to_initialize_rest_parameter: {
code: number;
category: DiagnosticCategory;
key: string;
};
Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters: {
code: number;
category: DiagnosticCategory;
key: string;
};
Constraint_of_a_type_parameter_cannot_reference_any_type_parameter_from_the_same_type_parameter_list: {
code: number;
category: DiagnosticCategory;
key: string;
};
Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: {
code: number;
category: DiagnosticCategory;
key: string;
};
Parameter_0_cannot_be_referenced_in_its_initializer: {
code: number;
category: DiagnosticCategory;
key: string;
};
Duplicate_string_index_signature: {
code: number;
category: DiagnosticCategory;
key: string;
};
Duplicate_number_index_signature: {
code: number;
category: DiagnosticCategory;
key: string;
};
All_declarations_of_an_interface_must_have_identical_type_parameters: {
code: number;
category: DiagnosticCategory;
key: string;
};
Expression_resolves_to_variable_declaration_i_that_compiler_uses_to_initialize_rest_parameter: {
code: number;
category: DiagnosticCategory;
key: string;
};
Constructor_implementation_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_parameter_property_is_only_allowed_in_a_constructor_implementation: {
code: number;
category: DiagnosticCategory;
key: string;
};
Circular_definition_of_import_alias_0: {
code: number;
category: DiagnosticCategory;
key: string;
};
Cannot_find_name_0: {
code: number;
category: DiagnosticCategory;
key: string;
};
Module_0_has_no_exported_member_1: {
code: number;
category: DiagnosticCategory;
key: string;
};
Cannot_find_external_module_0: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_module_cannot_have_more_than_one_export_assignment: {
code: number;
category: DiagnosticCategory;
key: string;
};
Type_0_recursively_references_itself_as_a_base_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_class_may_only_extend_another_class: {
code: number;
category: DiagnosticCategory;
key: string;
};
An_interface_may_only_extend_a_class_or_another_interface: {
code: number;
category: DiagnosticCategory;
key: string;
};
Generic_type_0_requires_1_type_argument_s: {
code: number;
category: DiagnosticCategory;
key: string;
};
Type_0_is_not_generic: {
code: number;
category: DiagnosticCategory;
key: string;
};
Cannot_find_global_type_0: {
code: number;
category: DiagnosticCategory;
key: string;
};
Global_type_0_must_be_a_class_or_interface_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
Global_type_0_must_have_1_type_parameter_s: {
code: number;
category: DiagnosticCategory;
key: string;
};
this_cannot_be_referenced_in_a_module_body: {
code: number;
category: DiagnosticCategory;
key: string;
};
this_cannot_be_referenced_in_a_static_property_initializer: {
code: number;
category: DiagnosticCategory;
key: string;
};
this_cannot_be_referenced_in_current_location: {
code: number;
category: DiagnosticCategory;
key: string;
};
super_can_only_be_referenced_in_a_derived_class: {
code: number;
category: DiagnosticCategory;
key: string;
};
Property_0_does_not_exist_on_type_1: {
code: number;
category: DiagnosticCategory;
key: string;
};
An_index_expression_argument_must_be_of_type_string_number_or_any: {
code: number;
category: DiagnosticCategory;
key: string;
};
Type_0_does_not_satisfy_the_constraint_1_Colon: {
code: number;
category: DiagnosticCategory;
key: string;
};
Type_0_does_not_satisfy_the_constraint_1: {
code: number;
category: DiagnosticCategory;
key: string;
};
Supplied_parameters_do_not_match_any_signature_of_call_target: {
code: number;
category: DiagnosticCategory;
key: string;
};
Cannot_invoke_an_expression_whose_type_lacks_a_call_signature: {
code: number;
category: DiagnosticCategory;
key: string;
};
Only_a_void_function_can_be_called_with_the_new_keyword: {
code: number;
category: DiagnosticCategory;
key: string;
};
Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature: {
code: number;
category: DiagnosticCategory;
key: string;
};
Neither_type_0_nor_type_1_is_assignable_to_the_other_Colon: {
code: number;
category: DiagnosticCategory;
key: string;
};
Neither_type_0_nor_type_1_is_assignable_to_the_other: {
code: number;
category: DiagnosticCategory;
key: string;
};
No_best_common_type_exists_among_return_expressions: {
code: number;
category: DiagnosticCategory;
key: string;
};
Operator_0_cannot_be_applied_to_types_1_and_2: {
code: number;
category: DiagnosticCategory;
key: string;
};
No_best_common_type_exists_between_0_and_1: {
code: number;
category: DiagnosticCategory;
key: string;
};
No_best_common_type_exists_between_0_1_and_2: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_rest_parameter_must_be_of_an_array_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation: {
code: number;
category: DiagnosticCategory;
key: string;
};
Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature: {
code: number;
category: DiagnosticCategory;
key: string;
};
Duplicate_function_implementation: {
code: number;
category: DiagnosticCategory;
key: string;
};
Overload_signature_is_not_compatible_with_function_implementation: {
code: number;
category: DiagnosticCategory;
key: string;
};
Index_signature_is_missing_in_type_0: {
code: number;
category: DiagnosticCategory;
key: string;
};
Index_signatures_are_incompatible_Colon: {
code: number;
category: DiagnosticCategory;
key: string;
};
Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function: {
code: number;
category: DiagnosticCategory;
key: string;
};
Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function: {
code: number;
category: DiagnosticCategory;
key: string;
};
Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor: {
code: number;
category: DiagnosticCategory;
key: string;
};
Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property: {
code: number;
category: DiagnosticCategory;
key: string;
};
In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element: {
code: number;
category: DiagnosticCategory;
key: string;
};
Named_properties_0_of_types_1_and_2_are_not_identical: {
code: number;
category: DiagnosticCategory;
key: string;
};
Cannot_find_the_common_subdirectory_path_for_the_input_files: {
code: number;
category: DiagnosticCategory;
key: string;
};
Cannot_read_file_0_Colon_1: {
code: number;
category: DiagnosticCategory;
key: string;
};
Unsupported_file_encoding: {
code: number;
category: DiagnosticCategory;
key: string;
};
Could_not_write_file_0_Colon_1: {
code: number;
category: DiagnosticCategory;
key: string;
};
Option_mapRoot_cannot_be_specified_without_specifying_sourcemap_option: {
code: number;
category: DiagnosticCategory;
key: string;
};
Option_sourceRoot_cannot_be_specified_without_specifying_sourcemap_option: {
code: number;
category: DiagnosticCategory;
key: string;
};
Variable_0_implicitly_has_an_1_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
Parameter_0_implicitly_has_an_1_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
Member_0_implicitly_has_an_1_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
Lambda_function_which_lacks_return_type_annotation_implicitly_has_an_0_return_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
Array_literal_implicitly_has_an_0_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_type_annotation: {
code: number;
category: DiagnosticCategory;
key: string;
};
Index_signature_of_object_type_implicitly_has_an_any_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
Object_literal_s_property_0_implicitly_has_an_1_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
Rest_parameter_0_implicitly_has_an_any_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type: {
code: number;
category: DiagnosticCategory;
key: string;
};
Variable_declaration_list_cannot_be_empty: {
code: number;
category: DiagnosticCategory;
key: string;
};
Digit_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Hexadecimal_digit_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Unexpected_end_of_text: {
code: number;
category: DiagnosticCategory;
key: string;
};
Unterminated_string_constant: {
code: number;
category: DiagnosticCategory;
key: string;
};
Invalid_character: {
code: number;
category: DiagnosticCategory;
key: string;
};
Declaration_or_statement_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Statement_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
case_or_default_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Property_or_signature_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Enum_member_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Type_reference_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Variable_declaration_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Argument_expression_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Property_assignment_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Expression_or_comma_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Parameter_declaration_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Type_parameter_declaration_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Type_argument_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
String_literal_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
not_preceded_by_parameter_list: {
code: number;
category: DiagnosticCategory;
key: string;
};
Invalid_assignment_target: {
code: number;
category: DiagnosticCategory;
key: string;
};
super_must_be_followed_by_argument_list_or_member_access: {
code: number;
category: DiagnosticCategory;
key: string;
};
Line_break_not_permitted_here: {
code: number;
category: DiagnosticCategory;
key: string;
};
catch_or_finally_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Block_or_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Modifiers_not_permitted_on_index_signature_members: {
code: number;
category: DiagnosticCategory;
key: string;
};
Class_member_declaration_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Declaration_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
Invalid_reference_comment: {
code: number;
category: DiagnosticCategory;
key: string;
};
File_0_is_not_an_external_module: {
code: number;
category: DiagnosticCategory;
key: string;
};
Excessive_stack_depth_comparing_types_0_and_1: {
code: number;
category: DiagnosticCategory;
key: string;
};
Type_0_is_not_assignable_to_type_1_Colon: {
code: number;
category: DiagnosticCategory;
key: string;
};
Type_0_is_not_assignable_to_type_1: {
code: number;
category: DiagnosticCategory;
key: string;
};
Property_0_is_missing_in_type_1: {
code: number;
category: DiagnosticCategory;
key: string;
};
Private_property_0_cannot_be_reimplemented: {
code: number;
category: DiagnosticCategory;
key: string;
};
Required_property_0_cannot_be_reimplemented_with_optional_property_in_1: {
code: number;
category: DiagnosticCategory;
key: string;
};
Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors: {
code: number;
category: DiagnosticCategory;
key: string;
};
Only_public_methods_of_the_base_class_are_accessible_via_the_super_keyword: {
code: number;
category: DiagnosticCategory;
key: string;
};
A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties: {
code: number;
category: DiagnosticCategory;
key: string;
};
Constructors_for_derived_classes_must_contain_a_super_call: {
code: number;
category: DiagnosticCategory;
key: string;
};
Import_name_cannot_be_0: {
code: number;
category: DiagnosticCategory;
key: string;
};
Type_parameter_name_cannot_be_0: {
code: number;
category: DiagnosticCategory;
key: string;
};
Class_name_cannot_be_0: {
code: number;
category: DiagnosticCategory;
key: string;
};
Interface_name_cannot_be_0: {
code: number;
category: DiagnosticCategory;
key: string;
};
Enum_name_cannot_be_0: {
code: number;
category: DiagnosticCategory;
key: string;
};
Types_of_property_0_are_incompatible_Colon: {
code: number;
category: DiagnosticCategory;
key: string;
};
Types_of_parameters_0_and_1_are_incompatible_Colon: {
code: number;
category: DiagnosticCategory;
key: string;
};
Unknown_identifier_0: {
code: number;
category: DiagnosticCategory;
key: string;
};
Property_0_is_inaccessible: {
code: number;
category: DiagnosticCategory;
key: string;
};
Function_implementation_expected: {
code: number;
category: DiagnosticCategory;
key: string;
};
return_statement_has_no_containing_function: {
code: number;
category: DiagnosticCategory;
key: string;
};
Property_0_of_type_1_is_not_assignable_to_string_index_type_2: {
code: number;
category: DiagnosticCategory;
key: string;
};
Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2: {
code: number;
category: DiagnosticCategory;
key: string;
};
Numeric_index_type_0_is_not_assignable_to_string_index_type_1: {
code: number;
category: DiagnosticCategory;
key: string;
};
Class_0_incorrectly_extends_base_class_1_Colon: {
code: number;
category: DiagnosticCategory;
key: string;
};
Class_0_incorrectly_extends_base_class_1: {
code: number;
category: DiagnosticCategory;
key: string;
};
Class_static_side_0_incorrectly_extends_base_class_static_side_1_Colon: {
code: number;
category: DiagnosticCategory;
key: string;
};
Class_static_side_0_incorrectly_extends_base_class_static_side_1: {
code: number;
category: DiagnosticCategory;
key: string;
};
Type_name_0_in_extends_clause_does_not_reference_constructor_function_for_0: {
code: number;
category: DiagnosticCategory;
key: string;
};
Class_0_incorrectly_implements_interface_1_Colon: {
code: number;
category: DiagnosticCategory;
key: string;
};
Class_0_incorrectly_implements_interface_1: {
code: number;
category: DiagnosticCategory;
key: string;
};
Interface_0_incorrectly_extends_interface_1_Colon: {
code: number;
category: DiagnosticCategory;
key: string;
};
Interface_0_incorrectly_extends_interface_1: {
code: number;
category: DiagnosticCategory;
key: string;
};
Ambient_external_modules_cannot_be_nested_in_other_modules: {
code: number;
category: DiagnosticCategory;
key: string;
};
Import_declarations_in_an_internal_module_cannot_reference_an_external_module: {
code: number;