chore: camelCase -> snake_case ()

pull/15575/head
Rich Harris 2 weeks ago committed by GitHub
parent e25c281296
commit 6b23a7c477
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1673,9 +1673,9 @@ function extract_type_and_comment(declarator, state, path) {
const match = /@type {(.+)}/.exec(comment_node.value);
if (match) {
// try to find JSDoc comments after a hyphen `-`
const jsdocComment = /@type {.+} (?:\w+|\[.*?\]) - (.+)/.exec(comment_node.value);
if (jsdocComment) {
cleaned_comment += jsdocComment[1]?.trim();
const jsdoc_comment = /@type {.+} (?:\w+|\[.*?\]) - (.+)/.exec(comment_node.value);
if (jsdoc_comment) {
cleaned_comment += jsdoc_comment[1]?.trim();
}
return {
type: match[1],

Loading…
Cancel
Save