---
title: ProcessedFile
description: A file passing through the plugin pipeline.
updated_at: '2026-11-25T17:36:18+01:00'
created_at: '2026-03-07T03:07:51+01:00'
symbol:
  kind: interface
  name: ProcessedFile
  signatures:
    - interface ProcessedFile
  members:
    - name: path
      kind: property
      signature: 'readonly path: string'
    - name: sourcePath
      kind: property
      signature: 'readonly sourcePath?: string'
    - name: extension
      kind: property
      signature: 'readonly extension?: string'
    - name: slug
      kind: property
      signature: 'slug: string'
    - name: content
      kind: property
      signature: 'content: string'
    - name: frontmatter
      kind: property
      signature: 'frontmatter?: Record<string, unknown>'
    - name: protection
      kind: property
      signature: 'protection?: { … }'
      description: Set only after publication filtering has confirmed this note is public.
    - name: protection.group
      kind: property
      signature: 'readonly group: string'
    - name: protection.hidden
      kind: property
      signature: 'readonly hidden: boolean'
    - name: rawLinks
      kind: property
      signature: 'rawLinks?: [[reference/api/core/RawLink|RawLink]][]'
    - name: links
      kind: property
      signature: 'links?: string[]'
    - name: inlineTags
      kind: property
      signature: 'inlineTags?: string[]'
      description: Inline Obsidian tags found in the note body after OFM transformation.
    - name: linkTargets
      kind: property
      signature: 'linkTargets?: Record<string, string>'
    - name: createdAt
      kind: property
      signature: 'createdAt?: Date'
    - name: modifiedAt
      kind: property
      signature: 'modifiedAt?: Date'
    - name: gitCreatedAt
      kind: property
      signature: 'gitCreatedAt?: Date'
    - name: gitModifiedAt
      kind: property
      signature: 'gitModifiedAt?: Date'
    - name: toc
      kind: property
      signature: 'toc?: readonly [[reference/api/core/TocEntry|TocEntry]][]'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/core/src/types.ts#L212
---

# ProcessedFile

Postconditions by stage:
  - after discoverFiles: `slug` is provisional (vault-relative, extensionless, case-normalized)
  - after parseFrontmatter: `frontmatter` is populated
  - after parseFrontmatter: `rawLinks` is populated
  - after allocateRoutes: `slug` is the unique canonical route key
  - after resolveLinks: `links` contains resolved slug strings
