# SvelteDetector

**Kind:** Class

**Source:** [`atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/detectors/svelte-detector.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/detectors/svelte-detector.ts#L57)

Svelte Detector

## Methods

| Method | Signature | Returns |
|---|---|---|
| `detect` | `detect(entities: Entity[])` | `DetectedSvelteComponent[]` |
| `getComponentSummary` | `getComponentSummary(component: DetectedSvelteComponent)` | `string` |

## Where it refuses work

- `SvelteDetector` stops the work with an early return when `filePath.endsWith('.svelte')`.
- `SvelteDetector` stops the work with an early return when `/\+page\.svelte|\+layout\.svelte|\+error\.svelte/.test(filePath)`.
- `SvelteDetector` stops the work with an early return when `!isPage && !isLayout`.
- `SvelteDetector` stops the work with an early return when `score >= 3`.
- `SvelteDetector` stops the work with an early return when `score >= 1`.
