; TypeScript folds query — @fold marks foldable multi-line nodes.

(function_declaration) @fold
(function_expression) @fold
(arrow_function) @fold
(generator_function_declaration) @fold
(method_definition) @fold

(class_declaration) @fold
(interface_declaration) @fold
(enum_declaration) @fold
(type_alias_declaration) @fold

(statement_block) @fold
(object) @fold
(array) @fold
(object_type) @fold

(if_statement) @fold
(for_statement) @fold
(for_in_statement) @fold
(while_statement) @fold
(switch_statement) @fold
(try_statement) @fold
