mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-21 14:59:39 +00:00
[automated] Apply ESLint and Prettier fixes
This commit is contained in:
@@ -187,33 +187,23 @@ function extractApiSurface(sourceFile) {
|
||||
function hasExportModifier(node) {
|
||||
return (
|
||||
node.modifiers &&
|
||||
node.modifiers.some(
|
||||
(mod) => mod.kind === ts.SyntaxKind.ExportKeyword
|
||||
)
|
||||
node.modifiers.some((mod) => mod.kind === ts.SyntaxKind.ExportKeyword)
|
||||
)
|
||||
}
|
||||
|
||||
function hasStaticModifier(node) {
|
||||
return (
|
||||
node.modifiers &&
|
||||
node.modifiers.some(
|
||||
(mod) => mod.kind === ts.SyntaxKind.StaticKeyword
|
||||
)
|
||||
node.modifiers.some((mod) => mod.kind === ts.SyntaxKind.StaticKeyword)
|
||||
)
|
||||
}
|
||||
|
||||
function getVisibility(node) {
|
||||
if (!node.modifiers) return 'public'
|
||||
if (
|
||||
node.modifiers.some(
|
||||
(mod) => mod.kind === ts.SyntaxKind.PrivateKeyword
|
||||
)
|
||||
)
|
||||
if (node.modifiers.some((mod) => mod.kind === ts.SyntaxKind.PrivateKeyword))
|
||||
return 'private'
|
||||
if (
|
||||
node.modifiers.some(
|
||||
(mod) => mod.kind === ts.SyntaxKind.ProtectedKeyword
|
||||
)
|
||||
node.modifiers.some((mod) => mod.kind === ts.SyntaxKind.ProtectedKeyword)
|
||||
)
|
||||
return 'protected'
|
||||
return 'public'
|
||||
|
||||
Reference in New Issue
Block a user