Kind: Class
Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/detectors/svelte-detector.ts
Svelte Detector
Methods
| Method | Signature | Returns |
|---|---|---|
detect | detect(entities: Entity[]) | DetectedSvelteComponent[] |
getComponentSummary | getComponentSummary(component: DetectedSvelteComponent) | string |
Where it refuses work
SvelteDetectorstops the work with an early return whenfilePath.endsWith('.svelte').SvelteDetectorstops the work with an early return when/\+page\.svelte|\+layout\.svelte|\+error\.svelte/.test(filePath).SvelteDetectorstops the work with an early return when!isPage && !isLayout.SvelteDetectorstops the work with an early return whenscore >= 3.SvelteDetectorstops the work with an early return whenscore >= 1.
Was this page helpful?